Commit 312429fb authored by Alexandre Julliard's avatar Alexandre Julliard

shell32: Use explicit prototypes for function pointers.

parent 34b0a55e
...@@ -180,7 +180,7 @@ BOOL WINAPI GetFileNameFromBrowse( ...@@ -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( ...@@ -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);
......
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