From: Jean-Baptiste Kempf Date: Thu, 20 Feb 2014 15:59:33 +0000 (+0100) Subject: Fix Windows plugin loading for Windows Store App X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=467c2535f24b733720ea17cf0eb157dd66c7c081;p=vlc Fix Windows plugin loading for Windows Store App SetThreadErrorMode is only for desktop mode --- diff --git a/src/win32/plugin.c b/src/win32/plugin.c index 6b861aa377..9dfc4d06bf 100644 --- a/src/win32/plugin.c +++ b/src/win32/plugin.c @@ -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 }