Author: mjansen Date: Fri Nov 25 22:16:39 2016 New Revision: 73377
URL: http://svn.reactos.org/svn/reactos?rev=73377&view=rev Log: [REGEDIT] Do not try to dereference a pointer when it is NULL. CORE-11915
Modified: trunk/reactos/base/applications/regedit/framewnd.c
Modified: trunk/reactos/base/applications/regedit/framewnd.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedit/f... ============================================================================== --- trunk/reactos/base/applications/regedit/framewnd.c [iso-8859-1] (original) +++ trunk/reactos/base/applications/regedit/framewnd.c [iso-8859-1] Fri Nov 25 22:16:39 2016 @@ -1316,7 +1316,7 @@ return DefWindowProcW(hWnd, message, wParam, lParam); break; case WM_ACTIVATE: - if (LOWORD(hWnd)) + if (LOWORD(hWnd) && g_pChildWnd) SetFocus(g_pChildWnd->hWnd); break; case WM_SIZE: