Module: wine Branch: master Commit: 577d08c1e7618c7464083f6464858ad33d0bedaf URL: http://source.winehq.org/git/wine.git/?a=commit;h=577d08c1e7618c7464083f6464...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Oct 2 14:54:12 2009 +0200
winetest: Use explicit prototypes for function pointers.
---
programs/winetest/main.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/programs/winetest/main.c b/programs/winetest/main.c index b16b9cf..bab7f11 100644 --- a/programs/winetest/main.c +++ b/programs/winetest/main.c @@ -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 */