Skip to content

Commit be2201b

Browse files
committed
Platform (Windows): don't use instance.config here
... as it's not initialized yet
1 parent 9ba1cd1 commit be2201b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/common/impl/FFPlatform_windows.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -226,12 +226,7 @@ static void getSystemReleaseAndVersion(FFPlatformSysinfo* info)
226226

227227
const char* wineVersion = detectWine();
228228
if (wineVersion)
229-
{
230-
if (instance.config.general.detectVersion)
231-
ffStrbufSetF(&info->name, "Wine_%s", wineVersion);
232-
else
233-
ffStrbufSetStatic(&info->name, "Wine");
234-
}
229+
ffStrbufSetF(&info->name, "Wine_%s", wineVersion);
235230
else
236231
ffStrbufSetStatic(&info->name, "WIN32_NT");
237232
}

0 commit comments

Comments
 (0)