1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-16 16:02:54 +02:00

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 <jb@videolan.org>
This commit is contained in:
Steve Lhomme 2017-02-14 13:25:56 +01:00 committed by Jean-Baptiste Kempf
parent c02a90717c
commit 864b2ed2d9
3 changed files with 4 additions and 4 deletions

View File

@ -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");

View File

@ -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");

View File

@ -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");