- some reformatting on exit code, mainly to make searching for the content easier.
This commit is contained in:
parent
f3219ca979
commit
86ab366958
25 changed files with 55 additions and 50 deletions
|
|
@ -932,7 +932,7 @@ void DoMain (HINSTANCE hInstance)
|
|||
|
||||
if (!Window)
|
||||
{
|
||||
MessageBoc(nullptr, "Fatal", "Unable to create main window", MB_ICONEXCLAMATION|MB_OK);
|
||||
MessageBoxA(nullptr, "Unable to create main window", "Fatal", MB_ICONEXCLAMATION|MB_OK);
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
|
|
@ -1019,7 +1019,7 @@ void DoMain (HINSTANCE hInstance)
|
|||
Printf("%s\n", msg);
|
||||
}
|
||||
}
|
||||
exit (-1);
|
||||
exit(-1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1133,7 +1133,7 @@ void CALLBACK ExitFatally (ULONG_PTR dummy)
|
|||
I_ShutdownGraphics ();
|
||||
RestoreConView ();
|
||||
DisplayCrashLog ();
|
||||
exit (-1);
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
@ -1233,7 +1233,7 @@ int WINAPI wWinMain (HINSTANCE hInstance, HINSTANCE nothing, LPWSTR cmdline, int
|
|||
// don't support Windows 95, we have no obligation to provide assistance in
|
||||
// getting it installed.
|
||||
MessageBoxA(NULL, "Could not load riched20.dll", GAMENAME " Error", MB_OK | MB_ICONSTOP);
|
||||
exit(0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if !defined(__GNUC__) && defined(_DEBUG)
|
||||
|
|
@ -1248,7 +1248,7 @@ int WINAPI wWinMain (HINSTANCE hInstance, HINSTANCE nothing, LPWSTR cmdline, int
|
|||
{
|
||||
}
|
||||
DisplayCrashLog ();
|
||||
exit (0);
|
||||
return 0;
|
||||
}
|
||||
if (__argc == 2 && __wargv != nullptr && wcscmp (__wargv[1], L"TestStackCrash") == 0)
|
||||
{
|
||||
|
|
@ -1261,7 +1261,7 @@ int WINAPI wWinMain (HINSTANCE hInstance, HINSTANCE nothing, LPWSTR cmdline, int
|
|||
{
|
||||
}
|
||||
DisplayCrashLog ();
|
||||
exit (0);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue