checkpoint paranoia

This commit is contained in:
Glenn Maynard
2006-03-30 08:10:11 +00:00
parent 8511eb2155
commit 76f0346122
@@ -366,6 +366,8 @@ void GraphicsWindow::DestroyGraphicsWindow()
g_HDC = NULL; g_HDC = NULL;
} }
CHECKPOINT;
if( g_hWndMain != NULL ) if( g_hWndMain != NULL )
{ {
DestroyWindow( g_hWndMain ); DestroyWindow( g_hWndMain );
@@ -373,19 +375,26 @@ void GraphicsWindow::DestroyGraphicsWindow()
CrashHandler::SetForegroundWindow( g_hWndMain ); CrashHandler::SetForegroundWindow( g_hWndMain );
} }
CHECKPOINT;
if( g_hIcon != NULL ) if( g_hIcon != NULL )
{ {
DestroyIcon( g_hIcon ); DestroyIcon( g_hIcon );
g_hIcon = NULL; g_hIcon = NULL;
} }
CHECKPOINT;
MSG msg; MSG msg;
while( PeekMessage( &msg, NULL, 0, 0, PM_NOREMOVE ) ) while( PeekMessage( &msg, NULL, 0, 0, PM_NOREMOVE ) )
{ {
CHECKPOINT;
GetMessage( &msg, NULL, 0, 0 ); GetMessage( &msg, NULL, 0, 0 );
CHECKPOINT;
DispatchMessage( &msg ); DispatchMessage( &msg );
} }
CHECKPOINT;
} }
void GraphicsWindow::Initialize( bool bD3D ) void GraphicsWindow::Initialize( bool bD3D )