mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
winetest: Use explicit prototypes for function pointers.
This commit is contained in:
parent
19c0b3ee48
commit
577d08c1e7
@ -135,8 +135,11 @@ static int running_on_visible_desktop (void)
|
||||
{
|
||||
HWND desktop;
|
||||
HMODULE huser32 = GetModuleHandle("user32.dll");
|
||||
FARPROC pGetProcessWindowStation = GetProcAddress(huser32, "GetProcessWindowStation");
|
||||
FARPROC pGetUserObjectInformationA = GetProcAddress(huser32, "GetUserObjectInformationA");
|
||||
HWINSTA (WINAPI *pGetProcessWindowStation)(void);
|
||||
BOOL (WINAPI *pGetUserObjectInformationA)(HANDLE,INT,LPVOID,DWORD,LPDWORD);
|
||||
|
||||
pGetProcessWindowStation = (void *)GetProcAddress(huser32, "GetProcessWindowStation");
|
||||
pGetUserObjectInformationA = (void *)GetProcAddress(huser32, "GetUserObjectInformationA");
|
||||
|
||||
desktop = GetDesktopWindow();
|
||||
if (!GetWindowLongPtrW(desktop, GWLP_WNDPROC)) /* Win9x */
|
||||
|
Loading…
Reference in New Issue
Block a user