[vlc-devel] [PATCH] cachegen: SetErrorMode is not available on Winstore 8.1

Steve Lhomme robux4 at videolabs.io
Tue Oct 24 13:58:34 CEST 2017


---
 bin/cachegen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/cachegen.c b/bin/cachegen.c
index 0e52559aaa..2368a7b05e 100644
--- a/bin/cachegen.c
+++ b/bin/cachegen.c
@@ -48,7 +48,7 @@ static void usage (const char *path)
 
 int main (int argc, char *argv[])
 {
-#ifdef _WIN32
+#if defined(_WIN32) && (!VLC_WINSTORE_APP || _WIN32_WINNT >= 0x0A00)
     SetErrorMode(SEM_FAILCRITICALERRORS);
 #endif
 #ifdef HAVE_GETOPT_H
-- 
2.14.2



More information about the vlc-devel mailing list