]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_win.c
fix a warning on argv
[xonotic/darkplaces.git] / sys_win.c
index 12ee10b519ec413d3f22212897fa7a561b2f0e4b..acd3c16125cfbf9f1e634980151a666234c2e88a 100644 (file)
--- a/sys_win.c
+++ b/sys_win.c
@@ -103,7 +103,7 @@ void Sys_Error (const char *error, ...)
                if (!in_sys_error0)
                {
                        in_sys_error0 = 1;
-                       VID_SetDefaultMode ();
+                       VID_Shutdown();
                        MessageBox(NULL, text, "Quake Error", MB_OK | MB_SETFOREGROUND | MB_ICONSTOP);
                }
                else
@@ -346,7 +346,7 @@ WinMain
 */
 HINSTANCE      global_hInstance;
 int                    global_nCmdShow;
-char           *argv[MAX_NUM_ARGVS];
+const char     *argv[MAX_NUM_ARGVS];
 char           program_name[MAX_OSPATH];
 
 int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)