Mercurial > mm7
changeset 1660:8fbc59bef5a0
Merge
author | Nomad |
---|---|
date | Wed, 18 Sep 2013 11:24:03 +0200 |
parents | 51c63e03e856 (diff) 55bdb9b043e3 (current diff) |
children | c6882fd6c4ee |
files | |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mm7_2.cpp Wed Sep 18 10:23:47 2013 +0200 +++ b/mm7_2.cpp Wed Sep 18 11:24:03 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);