Mercurial > mm7
changeset 1659:51c63e03e856
.
author | Nomad |
---|---|
date | Wed, 18 Sep 2013 11:23:41 +0200 |
parents | a7eebb6ee7a2 |
children | 8fbc59bef5a0 |
files | mm7_2.cpp |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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);