[vlc-commits] Win32: remove winrt loadpackagedlibrary

Jean-Baptiste Kempf git at videolan.org
Fri Mar 10 19:05:21 CET 2017


vlc/vlc-2.2 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Mar 10 19:00:41 2017 +0100| [a4792a79ef6a1851829ec89deba27ceb1d4c7b3f] | committer: Jean-Baptiste Kempf

Win32: remove winrt loadpackagedlibrary

Fixes compilation

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=a4792a79ef6a1851829ec89deba27ceb1d4c7b3f
---

 src/win32/plugin.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/win32/plugin.c b/src/win32/plugin.c
index 96cd246..ee43263 100644
--- a/src/win32/plugin.c
+++ b/src/win32/plugin.c
@@ -60,16 +60,16 @@ int module_Load( vlc_object_t *p_this, const char *psz_file,
         return -1;
 
     module_handle_t handle = NULL;
-#if (_WIN32_WINNT >= 0x601) && !VLC_WINSTORE_APP
+#if (_WIN32_WINNT >= 0x601)
     DWORD mode;
     if (SetThreadErrorMode (SEM_FAILCRITICALERRORS, &mode) != 0)
+#endif
     {
         handle = LoadLibraryExW (wfile, NULL, LoadLibraryFlags );
+#if (_WIN32_WINNT >= 0x601)
         SetThreadErrorMode (mode, NULL);
-    }
-#else
-    LoadPackagedLibrary( wfile )
 #endif
+    }
     free (wfile);
 
     if( handle == NULL )



More information about the vlc-commits mailing list