[vlc-commits] core: WINAPI should be set on the pointer
Steve Lhomme
git at videolan.org
Tue Feb 14 22:57:42 CET 2017
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Tue Feb 14 13:25:56 2017 +0100| [864b2ed2d999711cd05ca636f09df0ea274212da] | committer: 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 <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=864b2ed2d999711cd05ca636f09df0ea274212da
---
bin/winvlc.c | 2 +-
src/text/url.c | 2 +-
src/win32/plugin.c | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/bin/winvlc.c b/bin/winvlc.c
index dfe8878..05cbe75 100644
--- a/bin/winvlc.c
+++ b/bin/winvlc.c
@@ -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");
diff --git a/src/text/url.c b/src/text/url.c
index 4430dba..1b602b5 100644
--- a/src/text/url.c
+++ b/src/text/url.c
@@ -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");
diff --git a/src/win32/plugin.c b/src/win32/plugin.c
index e1a37ae..1a65521 100644
--- a/src/win32/plugin.c
+++ b/src/win32/plugin.c
@@ -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");
More information about the vlc-commits
mailing list