shell32: Use explicit prototypes for function pointers.
This commit is contained in:
parent
34b0a55eb1
commit
312429fb51
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue