mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-13 07:47:45 +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;
|
qboolean isDedicated = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
void Signal_Error_Handler(int i)
|
void VARGS Signal_Error_Handler(int i)
|
||||||
{
|
{
|
||||||
int *basepointer;
|
int *basepointer;
|
||||||
__asm {mov basepointer,ebp};
|
__asm {mov basepointer,ebp};
|
||||||
Sys_Error("Receieved signal, offset was 0x%8x", basepointer[73]);
|
Sys_Error("Receieved signal, offset was 0x%8x", basepointer[73]);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
|
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)
|
if (hPrevInstance)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
#ifndef _DEBUG
|
||||||
|
#ifdef _MSC_VER
|
||||||
signal (SIGFPE, Signal_Error_Handler);
|
signal (SIGFPE, Signal_Error_Handler);
|
||||||
signal (SIGILL, Signal_Error_Handler);
|
signal (SIGILL, Signal_Error_Handler);
|
||||||
signal (SIGSEGV, Signal_Error_Handler);
|
signal (SIGSEGV, Signal_Error_Handler);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
global_hInstance = hInstance;
|
global_hInstance = hInstance;
|
||||||
global_nCmdShow = nCmdShow;
|
global_nCmdShow = nCmdShow;
|
||||||
|
|
Loading…
Reference in a new issue