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:
parent
c02a90717c
commit
864b2ed2d9
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user