Commit 577d08c1 authored by Alexandre Julliard's avatar Alexandre Julliard

winetest: Use explicit prototypes for function pointers.

parent 19c0b3ee
...@@ -135,8 +135,11 @@ static int running_on_visible_desktop (void) ...@@ -135,8 +135,11 @@ static int running_on_visible_desktop (void)
{ {
HWND desktop; HWND desktop;
HMODULE huser32 = GetModuleHandle("user32.dll"); HMODULE huser32 = GetModuleHandle("user32.dll");
FARPROC pGetProcessWindowStation = GetProcAddress(huser32, "GetProcessWindowStation"); HWINSTA (WINAPI *pGetProcessWindowStation)(void);
FARPROC pGetUserObjectInformationA = GetProcAddress(huser32, "GetUserObjectInformationA"); BOOL (WINAPI *pGetUserObjectInformationA)(HANDLE,INT,LPVOID,DWORD,LPDWORD);
pGetProcessWindowStation = (void *)GetProcAddress(huser32, "GetProcessWindowStation");
pGetUserObjectInformationA = (void *)GetProcAddress(huser32, "GetUserObjectInformationA");
desktop = GetDesktopWindow(); desktop = GetDesktopWindow();
if (!GetWindowLongPtrW(desktop, GWLP_WNDPROC)) /* Win9x */ if (!GetWindowLongPtrW(desktop, GWLP_WNDPROC)) /* Win9x */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment