mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-22 12:01:25 +00:00
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:
parent
b6dab6a5ee
commit
c316584de4
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue