Die early if CreateDialog fails

This commit is contained in:
Ben "root" Anderson
2013-10-29 15:51:47 -05:00
parent b676d136e4
commit 32a25023d3
@@ -146,6 +146,7 @@ LoadingWindow_Win32::LoadingWindow_Win32()
{
m_hIcon = NULL;
hwnd = CreateDialog( handle.Get(), MAKEINTRESOURCE(IDD_LOADING_DIALOG), NULL, WndProc );
ASSERT( hwnd != NULL );
for( unsigned i = 0; i < 3; ++i )
text[i] = "ABC"; /* always set on first call */
SetText( "" );