Skip to content
Snippets Groups Projects
Commit 72b2f4a5 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

win32: plugin: Fix inverted logic

SetThreadErrorMode returns 0 on failure
parent 6b1892fa
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment