Commit 72b2f4a5 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

win32: plugin: Fix inverted logic

SetThreadErrorMode returns 0 on failure
parent 6b1892fa
......@@ -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