]> git.sesse.net Git - vlc/blobdiff - src/modules/os.c
WinCE: fix missing functions
[vlc] / src / modules / os.c
index 6770a3fdcc78a60da6e3f671944e7179ab3dc165..91a5c12ad2e3dcc6c9345561dcd7d05f24ca5dbd 100644 (file)
@@ -183,16 +183,17 @@ int module_Load( vlc_object_t *p_this, const char *psz_file,
     wchar_t psz_wfile[MAX_PATH];
     MultiByteToWideChar( CP_ACP, 0, psz_file, -1, psz_wfile, MAX_PATH );
 
+#ifndef UNDER_CE
     /* FIXME: this is not thread-safe -- Courmisch */
     UINT mode = SetErrorMode (SEM_FAILCRITICALERRORS);
     SetErrorMode (mode|SEM_FAILCRITICALERRORS);
+#endif
 
-#ifdef UNDER_CE
-    handle = LoadLibrary( psz_wfile );
-#else
     handle = LoadLibraryW( psz_wfile );
-#endif
+
+#ifndef UNDER_CE
     SetErrorMode (mode);
+#endif
 
     if( handle == NULL )
     {