# HG changeset patch # User Nomad # Date 1379496221 -7200 # Node ID 51c63e03e8569f8d3e44fe3487441aa1fe798132 # Parent a7eebb6ee7a25c575ff81d9e2869e9dd82ba30f9 . diff -r a7eebb6ee7a2 -r 51c63e03e856 mm7_2.cpp --- a/mm7_2.cpp Wed Sep 18 11:13:38 2013 +0200 +++ b/mm7_2.cpp Wed Sep 18 11:23:41 2013 +0200 @@ -3719,8 +3719,11 @@ case WM_SETFOCUS: dword_4E98BC_bApplicationActive = 0; - if ( pRenderer->bUserDirect3D && pRenderer->uAcquiredDirect3DDevice == 1 ) - SetWindowPos(hWnd, (HWND)0xFFFFFFFE, 0, 0, 0, 0, 0x18u); + if (pRenderer) + { + if ( pRenderer->bUserDirect3D && pRenderer->uAcquiredDirect3DDevice == 1 ) + SetWindowPos(hWnd, (HWND)0xFFFFFFFE, 0, 0, 0, 0, 0x18u); + } ClipCursor(0); return DefWindowProcW(hWnd, uMsg, wParam, lParam);