shell32: Use explicit prototypes for function pointers.

This commit is contained in:
Alexandre Julliard 2009-09-09 13:13:19 +02:00
parent 34b0a55eb1
commit 312429fb51
1 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ BOOL WINAPI GetFileNameFromBrowse(
LPCSTR lpstrTitle) LPCSTR lpstrTitle)
{ {
HMODULE hmodule; HMODULE hmodule;
FARPROC pGetOpenFileNameA; BOOL (WINAPI *pGetOpenFileNameA)(LPOPENFILENAMEA);
OPENFILENAMEA ofn; OPENFILENAMEA ofn;
BOOL ret; BOOL ret;
@ -190,7 +190,7 @@ BOOL WINAPI GetFileNameFromBrowse(
hmodule = LoadLibraryA("comdlg32.dll"); hmodule = LoadLibraryA("comdlg32.dll");
if(!hmodule) return FALSE; if(!hmodule) return FALSE;
pGetOpenFileNameA = GetProcAddress(hmodule, "GetOpenFileNameA"); pGetOpenFileNameA = (void *)GetProcAddress(hmodule, "GetOpenFileNameA");
if(!pGetOpenFileNameA) if(!pGetOpenFileNameA)
{ {
FreeLibrary(hmodule); FreeLibrary(hmodule);