]> git.sesse.net Git - vlc/commitdiff
Fix Windows plugin loading for Windows Store App
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 20 Feb 2014 15:59:33 +0000 (16:59 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 20 Feb 2014 16:00:52 +0000 (17:00 +0100)
SetThreadErrorMode is only for desktop mode

src/win32/plugin.c

index 6b861aa3771bbef911d0336ca8068325e6aa0588..9dfc4d06bfca2630826d4cac75db973342590c7b 100644 (file)
@@ -58,14 +58,14 @@ int module_Load( vlc_object_t *p_this, const char *psz_file,
         return -1;
 
     module_handle_t handle = NULL;
-#if (_WIN32_WINNT >= 0x601)
+#if (_WIN32_WINNT >= 0x601) && !VLC_WINSTORE_APP
     DWORD mode;
 
     if (SetThreadErrorMode (SEM_FAILCRITICALERRORS, &mode) == 0)
 #endif
     {
         handle = LoadLibraryW (wfile);
-#if (_WIN32_WINNT >= 0x601)
+#if (_WIN32_WINNT >= 0x601) && !VLC_WINSTORE_APP
         SetThreadErrorMode (mode, NULL);
 #endif
     }