Commit f05c2e81 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

win32: plugin: Fix inverted logic

SetThreadErrorMode returns 0 on failure

(cherry picked from commit 72b2f4a51d9cfe103bc9ca5644d87c0e5abdab4d)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent e59500eb
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment