Fix stuph.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1303 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-09-13 07:10:18 +00:00
parent b6dab6a5ee
commit c316584de4

View file

@ -957,13 +957,15 @@ HWND hwnd_dialog;
qboolean isDedicated = false;
#endif
#ifdef _MSC_VER
#include <signal.h>
void Signal_Error_Handler(int i)
void VARGS Signal_Error_Handler(int i)
{
int *basepointer;
__asm {mov basepointer,ebp};
Sys_Error("Receieved signal, offset was 0x%8x", basepointer[73]);
}
#endif
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
@ -979,9 +981,13 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
if (hPrevInstance)
return 0;
#ifndef _DEBUG
#ifdef _MSC_VER
signal (SIGFPE, Signal_Error_Handler);
signal (SIGILL, Signal_Error_Handler);
signal (SIGSEGV, Signal_Error_Handler);
#endif
#endif
global_hInstance = hInstance;
global_nCmdShow = nCmdShow;