[vlc-devel] [PATCH] win32:plugin: fix SetThreadErrorMode use on older windows
Steve Lhomme
robux4 at videolabs.io
Fri Jan 15 14:10:49 CET 2016
---
src/win32/plugin.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/win32/plugin.c b/src/win32/plugin.c
index ac9ea0a..81f3880 100644
--- a/src/win32/plugin.c
+++ b/src/win32/plugin.c
@@ -56,6 +56,8 @@ static BOOL WINAPI SetThreadErrorModeFallback(DWORD mode, DWORD *oldmode)
GetErrorModeReal = (void *)GetProcAddress(h, "GetErrorMode");
if (GetErrorModeReal != NULL)
curmode = GetErrorModeReal();
+ else
+ return TRUE;
# endif
/* Extra flags should be OK. Missing flags are NOT OK. */
if ((mode & curmode) != mode)
--
2.7.0
More information about the vlc-devel
mailing list