mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-12 10:22:12 +02:00
Platform (Windows): don't use instance.config here
... as it's not initialized yet
This commit is contained in:
@@ -226,12 +226,7 @@ static void getSystemReleaseAndVersion(FFPlatformSysinfo* info)
|
||||
|
||||
const char* wineVersion = detectWine();
|
||||
if (wineVersion)
|
||||
{
|
||||
if (instance.config.general.detectVersion)
|
||||
ffStrbufSetF(&info->name, "Wine_%s", wineVersion);
|
||||
else
|
||||
ffStrbufSetStatic(&info->name, "Wine");
|
||||
}
|
||||
ffStrbufSetF(&info->name, "Wine_%s", wineVersion);
|
||||
else
|
||||
ffStrbufSetStatic(&info->name, "WIN32_NT");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user