[vlc-commits] win32: plugin: Fix inverted logic

Hugo Beauzée-Luyssen git at videolan.org
Thu Apr 2 14:12:00 CEST 2015


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Apr  2 13:59:08 2015 +0200| [72b2f4a51d9cfe103bc9ca5644d87c0e5abdab4d] | committer: Hugo Beauzée-Luyssen

win32: plugin: Fix inverted logic

SetThreadErrorMode returns 0 on failure

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=72b2f4a51d9cfe103bc9ca5644d87c0e5abdab4d
---

 src/win32/plugin.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/win32/plugin.c b/src/win32/plugin.c
index 9dfc4d0..a9e0e6c 100644
--- a/src/win32/plugin.c
+++ b/src/win32/plugin.c
@@ -61,7 +61,7 @@ int module_Load( vlc_object_t *p_this, const char *psz_file,
 #if (_WIN32_WINNT >= 0x601) && !VLC_WINSTORE_APP
     DWORD mode;
 
-    if (SetThreadErrorMode (SEM_FAILCRITICALERRORS, &mode) == 0)
+    if (SetThreadErrorMode (SEM_FAILCRITICALERRORS, &mode) != 0)
 #endif
     {
         handle = LoadLibraryW (wfile);



More information about the vlc-commits mailing list