Skip to content

Commit 23e4d1c

Browse files
committed
Chore (Windows): tidy
1 parent 6871c8b commit 23e4d1c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/util/platform/FFPlatform_windows.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,13 @@ static void getUserShell(FFPlatform* platform)
170170

171171
static void detectWine(FFstrbuf* buf)
172172
{
173-
static const char *(__cdecl *pwine_get_version)(void);
173+
const char * __cdecl wine_get_version(void);
174174
HMODULE hntdll = GetModuleHandleW(L"ntdll.dll");
175175
if (!hntdll) return;
176-
pwine_get_version = (void *)GetProcAddress(hntdll, "wine_get_version");
177-
if (!pwine_get_version) return;
176+
FF_LIBRARY_LOAD_SYMBOL_LAZY(hntdll, wine_get_version);
177+
if (!ffwine_get_version) return;
178178
ffStrbufAppendS(buf, buf->length ? " - wine " : "wine ");
179-
ffStrbufAppendS(buf, pwine_get_version());
179+
ffStrbufAppendS(buf, ffwine_get_version());
180180
}
181181

182182
static void getSystemReleaseAndVersion(FFPlatformSysinfo* info)

0 commit comments

Comments
 (0)