@@ -340,9 +340,9 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
340340 return DefWindowProcA (hWnd, uMsg, wParam, lParam);
341341}
342342
343- BOOL WINAPI HandlerRoutine (DWORD CtrlType)
343+ BOOL WINAPI control_handler_routine (DWORD CtrlType)
344344{
345- return INVOKE (0x0042E900 , HandlerRoutine , CtrlType);
345+ return INVOKE (0x0042E900 , control_handler_routine , CtrlType);
346346}
347347
348348char * __cdecl shell_get_command_line ()
@@ -417,15 +417,15 @@ void __cdecl shell_platform_dispose()
417417{
418418 // INVOKE(0x0042EA00, shell_platform_dispose);
419419
420- SetConsoleCtrlHandler (HandlerRoutine , FALSE );
420+ SetConsoleCtrlHandler (control_handler_routine , FALSE );
421421}
422422
423423bool __cdecl shell_platform_initialize ()
424424{
425425 // return INVOKE(0x0042EA10, shell_platform_initialize);
426426
427- SetConsoleCtrlHandler (HandlerRoutine , TRUE );
428- SetUnhandledExceptionFilter (TopLevelExceptionFilter );
427+ SetConsoleCtrlHandler (control_handler_routine , TRUE );
428+ SetUnhandledExceptionFilter (unhandled_exception_handler );
429429 sub_42EA80 ();
430430
431431 return true ;
@@ -473,17 +473,19 @@ void __cdecl sub_42EA80()
473473 }
474474}
475475
476- LONG WINAPI TopLevelExceptionFilter (_EXCEPTION_POINTERS* ExceptionInfo)
476+ LONG WINAPI unhandled_exception_handler (_EXCEPTION_POINTERS* ExceptionInfo)
477477{
478- return INVOKE (0x0042EAC0 , TopLevelExceptionFilter , ExceptionInfo);
478+ return INVOKE (0x0042EAC0 , unhandled_exception_handler , ExceptionInfo);
479479
480480 // if (!is_main_thread())
481481 // {
482482 // cache_exception_information(ExceptionInfo);
483483 // PostThreadMessageA(get_main_thread_id(), WM_NULL, 0, 0);
484484 //
485485 // while (true)
486- // Sleep(1);
486+ // {
487+ // sleep(1);
488+ // }
487489 // }
488490 // return generic_exception_filter(ExceptionInfo->ExceptionRecord->ExceptionCode, ExceptionInfo);
489491}
0 commit comments