We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6871c8b commit 23e4d1cCopy full SHA for 23e4d1c
1 file changed
src/util/platform/FFPlatform_windows.c
@@ -170,13 +170,13 @@ static void getUserShell(FFPlatform* platform)
170
171
static void detectWine(FFstrbuf* buf)
172
{
173
- static const char *(__cdecl *pwine_get_version)(void);
+ const char * __cdecl wine_get_version(void);
174
HMODULE hntdll = GetModuleHandleW(L"ntdll.dll");
175
if (!hntdll) return;
176
- pwine_get_version = (void *)GetProcAddress(hntdll, "wine_get_version");
177
- if (!pwine_get_version) return;
+ FF_LIBRARY_LOAD_SYMBOL_LAZY(hntdll, wine_get_version);
+ if (!ffwine_get_version) return;
178
ffStrbufAppendS(buf, buf->length ? " - wine " : "wine ");
179
- ffStrbufAppendS(buf, pwine_get_version());
+ ffStrbufAppendS(buf, ffwine_get_version());
180
}
181
182
static void getSystemReleaseAndVersion(FFPlatformSysinfo* info)
0 commit comments