From 467c2535f24b733720ea17cf0eb157dd66c7c081 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Thu, 20 Feb 2014 16:59:33 +0100 Subject: [PATCH] Fix Windows plugin loading for Windows Store App SetThreadErrorMode is only for desktop mode --- src/win32/plugin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } -- 2.39.2