Commit 864b2ed2 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

core: WINAPI should be set on the pointer

We'll be consistent with all the WINAPI function pointers throughout the code.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent c02a9071
......@@ -68,7 +68,7 @@ static BOOL SetDefaultDllDirectories_(DWORD flags)
if (h == NULL)
return FALSE;
BOOL WINAPI (*SetDefaultDllDirectoriesReal)(DWORD);
BOOL (WINAPI * SetDefaultDllDirectoriesReal)(DWORD);
SetDefaultDllDirectoriesReal = GetProcAddress(h,
"SetDefaultDllDirectories");
......
......@@ -844,7 +844,7 @@ static int IdnToAscii(DWORD flags, LPCWSTR str, int len, LPWSTR buf, int size)
return 0;
}
int WINAPI (*IdnToAsciiReal)(DWORD, LPCWSTR, int, LPWSTR, int);
int (WINAPI *IdnToAsciiReal)(DWORD, LPCWSTR, int, LPWSTR, int);
int ret = 0;
IdnToAsciiReal = GetProcAddress(h, "IdnToAscii");
......
......@@ -43,7 +43,7 @@ static BOOL WINAPI SetThreadErrorModeFallback(DWORD mode, DWORD *oldmode)
if (unlikely(h == NULL))
return FALSE;
BOOL WINAPI (*SetThreadErrorModeReal)(DWORD, DWORD *);
BOOL (WINAPI *SetThreadErrorModeReal)(DWORD, DWORD *);
SetThreadErrorModeReal = GetProcAddress(h, "SetThreadErrorMode");
if (SetThreadErrorModeReal != NULL)
......@@ -53,7 +53,7 @@ static BOOL WINAPI SetThreadErrorModeFallback(DWORD mode, DWORD *oldmode)
/* As per libvlc_new() documentation, the calling process is responsible
* for setting a proper error mode on Windows 2008 and earlier versions.
* This is only a sanity check. */
UINT WINAPI (*GetErrorModeReal)(void);
UINT (WINAPI *GetErrorModeReal)(void);
DWORD curmode = 0;
GetErrorModeReal = (void *)GetProcAddress(h, "GetErrorMode");
......
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