From 76f0346122bbc0cc297b3aa5c3fcc5579d3a19f7 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 30 Mar 2006 08:10:11 +0000 Subject: [PATCH] checkpoint paranoia --- stepmania/src/archutils/Win32/GraphicsWindow.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/stepmania/src/archutils/Win32/GraphicsWindow.cpp b/stepmania/src/archutils/Win32/GraphicsWindow.cpp index 85cebb89cd..08c39bc695 100644 --- a/stepmania/src/archutils/Win32/GraphicsWindow.cpp +++ b/stepmania/src/archutils/Win32/GraphicsWindow.cpp @@ -366,6 +366,8 @@ void GraphicsWindow::DestroyGraphicsWindow() g_HDC = NULL; } + CHECKPOINT; + if( g_hWndMain != NULL ) { DestroyWindow( g_hWndMain ); @@ -373,19 +375,26 @@ void GraphicsWindow::DestroyGraphicsWindow() CrashHandler::SetForegroundWindow( g_hWndMain ); } + CHECKPOINT; + if( g_hIcon != NULL ) { DestroyIcon( g_hIcon ); g_hIcon = NULL; } + CHECKPOINT; + MSG msg; while( PeekMessage( &msg, NULL, 0, 0, PM_NOREMOVE ) ) { + CHECKPOINT; GetMessage( &msg, NULL, 0, 0 ); + CHECKPOINT; DispatchMessage( &msg ); } + CHECKPOINT; } void GraphicsWindow::Initialize( bool bD3D )