Alexandre Julliard : shell32: Use explicit prototypes for function pointers .
Module: wine Branch: master Commit: 312429fb5147cc6507b299dc763178a40a1ae708 URL: http://source.winehq.org/git/wine.git/?a=commit;h=312429fb5147cc6507b299dc76... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Sep 9 13:13:19 2009 +0200 shell32: Use explicit prototypes for function pointers. --- dlls/shell32/shellord.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/shell32/shellord.c b/dlls/shell32/shellord.c index 44c9c7e..ac06e4b 100644 --- a/dlls/shell32/shellord.c +++ b/dlls/shell32/shellord.c @@ -180,7 +180,7 @@ BOOL WINAPI GetFileNameFromBrowse( LPCSTR lpstrTitle) { HMODULE hmodule; - FARPROC pGetOpenFileNameA; + BOOL (WINAPI *pGetOpenFileNameA)(LPOPENFILENAMEA); OPENFILENAMEA ofn; BOOL ret; @@ -190,7 +190,7 @@ BOOL WINAPI GetFileNameFromBrowse( hmodule = LoadLibraryA("comdlg32.dll"); if(!hmodule) return FALSE; - pGetOpenFileNameA = GetProcAddress(hmodule, "GetOpenFileNameA"); + pGetOpenFileNameA = (void *)GetProcAddress(hmodule, "GetOpenFileNameA"); if(!pGetOpenFileNameA) { FreeLibrary(hmodule);
participants (1)
-
Alexandre Julliard