# HG changeset patch # User Nomad # Date 1381143653 -7200 # Node ID 830f196a69eaf67932c6588e1223a6a39c791f0f # Parent 92ab1b3cc95a1807a9cb274d78c2e490fb7aed43 WinXP fix diff -r 92ab1b3cc95a -r 830f196a69ea .hgignore --- a/.hgignore Mon Oct 07 11:59:51 2013 +0200 +++ b/.hgignore Mon Oct 07 13:00:53 2013 +0200 @@ -0,0 +1,4 @@ +syntax: glob +Debug/ +Release/ +*.orig diff -r 92ab1b3cc95a -r 830f196a69ea OSWindow.cpp --- a/OSWindow.cpp Mon Oct 07 11:59:51 2013 +0200 +++ b/OSWindow.cpp Mon Oct 07 13:00:53 2013 +0200 @@ -341,8 +341,13 @@ return false; case WM_PAINT: - if ( !GetUpdateRect(api_handle, 0, 0) || !dword_4E98BC_bApplicationActive && !pRenderer->bWindowMode ) - return *result = 0, true; + if (pRenderer) + { + if ( !GetUpdateRect(api_handle, 0, 0) || !dword_4E98BC_bApplicationActive && !pRenderer->bWindowMode ) + return *result = 0, true; + } + if (!api_handle) + return false; PAINTSTRUCT Paint; BeginPaint(api_handle, &Paint); if ( pArcomageGame->bGameInProgress )