mirror of
https://github.com/SDL-Hercules-390/hyperion.git
synced 2026-04-21 03:12:58 +02:00
Windows builds: Don't SetConsoleCtrlHandler
nor disable the Close menu if being debugged. git-svn-id: file:///home/jj/hercules.svn/trunk@5843 956126f8-22a0-4046-8f4a-272fa8102e63
This commit is contained in:
12
bootstrap.c
12
bootstrap.c
@@ -106,15 +106,6 @@ int main(int ac,char *av[])
|
||||
|
||||
timeBeginPeriod( 1 ); // (one millisecond time interval accuracy)
|
||||
|
||||
EnableMenuItem( GetSystemMenu( FindConsoleHandle(), FALSE ),
|
||||
SC_CLOSE, MF_BYCOMMAND | MF_GRAYED );
|
||||
|
||||
// if ( ShutdownBlockReasonCreate( FindConsoleHandle(), L"Guest OS might be processing") == 0)
|
||||
// {
|
||||
// DWORD dw = GetLastError();
|
||||
// printf( "ShutdownBlockReasonCreate failed %ul\n", dw);
|
||||
// }
|
||||
|
||||
// If we're being debugged, then let the debugger
|
||||
// catch the exception. Otherwise, let our exception
|
||||
// handler catch it...
|
||||
@@ -125,6 +116,9 @@ int main(int ac,char *av[])
|
||||
}
|
||||
else // (not being debugged; use our exception handler)
|
||||
{
|
||||
EnableMenuItem( GetSystemMenu( FindConsoleHandle(), FALSE ),
|
||||
SC_CLOSE, MF_BYCOMMAND | MF_GRAYED );
|
||||
|
||||
if (1
|
||||
&& (g_hDbgHelpDll = LoadLibrary(_T("DbgHelp.dll")))
|
||||
&& (g_pfnMiniDumpWriteDumpFunc = (MINIDUMPWRITEDUMPFUNC*)
|
||||
|
||||
Reference in New Issue
Block a user