[vlc-commits] win32: plugin: Fix inverted logic
Hugo Beauzée-Luyssen
git at videolan.org
Wed Apr 8 18:18:27 CEST 2015
vlc/vlc-2.2 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Apr 2 13:59:08 2015 +0200| [f05c2e817b2eb30194be2ca34fe279fc6c98a08d] | committer: Jean-Baptiste Kempf
win32: plugin: Fix inverted logic
SetThreadErrorMode returns 0 on failure
(cherry picked from commit 72b2f4a51d9cfe103bc9ca5644d87c0e5abdab4d)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=f05c2e817b2eb30194be2ca34fe279fc6c98a08d
---
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