mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
clean up BUGTRAP code in win32/win_main.c to avoid unmatched }
(though that said we don't officially care about the win32 folder files anymore)
This commit is contained in:
parent
1636c90388
commit
8f776b9318
1 changed files with 16 additions and 25 deletions
|
|
@ -643,37 +643,28 @@ int WINAPI WinMain (HINSTANCE hInstance,
|
||||||
int nCmdShow)
|
int nCmdShow)
|
||||||
{
|
{
|
||||||
int Result = -1;
|
int Result = -1;
|
||||||
|
|
||||||
#if 0
|
|
||||||
// Win95 and NT <4 don't have this, so link at runtime.
|
|
||||||
p_IsDebuggerPresent pfnIsDebuggerPresent = (p_IsDebuggerPresent)GetProcAddress(GetModuleHandleA("kernel32.dll"),"IsDebuggerPresent");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
UNREFERENCED_PARAMETER(hPrevInstance);
|
UNREFERENCED_PARAMETER(hPrevInstance);
|
||||||
UNREFERENCED_PARAMETER(lpCmdLine);
|
UNREFERENCED_PARAMETER(lpCmdLine);
|
||||||
UNREFERENCED_PARAMETER(nCmdShow);
|
UNREFERENCED_PARAMETER(nCmdShow);
|
||||||
|
|
||||||
#if 0
|
|
||||||
#ifdef BUGTRAP
|
|
||||||
// Try BugTrap first.
|
|
||||||
if((!pfnIsDebuggerPresent || !pfnIsDebuggerPresent()) && InitBugTrap())
|
|
||||||
Result = HandledWinMain(hInstance);
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
#endif
|
#if 0
|
||||||
// Try Dr MinGW's exception handler.
|
p_IsDebuggerPresent pfnIsDebuggerPresent = (p_IsDebuggerPresent)GetProcAddress(GetModuleHandleA("kernel32.dll"),"IsDebuggerPresent");
|
||||||
if (!pfnIsDebuggerPresent || !pfnIsDebuggerPresent())
|
if((!pfnIsDebuggerPresent || !pfnIsDebuggerPresent())
|
||||||
#endif
|
#ifdef BUGTRAP
|
||||||
LoadLibraryA("exchndl.dll");
|
&& !InitBugTrap()
|
||||||
|
#endif
|
||||||
#ifndef __MINGW32__
|
)
|
||||||
prevExceptionFilter = SetUnhandledExceptionFilter(RecordExceptionInfo);
|
#endif
|
||||||
#endif
|
{
|
||||||
|
LoadLibraryA("exchndl.dll");
|
||||||
Result = HandledWinMain(hInstance);
|
}
|
||||||
|
}
|
||||||
|
#ifndef __MINGW32__
|
||||||
|
prevExceptionFilter = SetUnhandledExceptionFilter(RecordExceptionInfo);
|
||||||
|
#endif
|
||||||
|
Result = HandledWinMain(hInstance);
|
||||||
#ifdef BUGTRAP
|
#ifdef BUGTRAP
|
||||||
} // BT failure clause.
|
|
||||||
|
|
||||||
// This is safe even if BT didn't start.
|
// This is safe even if BT didn't start.
|
||||||
ShutdownBugTrap();
|
ShutdownBugTrap();
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue