From 140f03135735c088666b2c8e39b90e261acc697c Mon Sep 17 00:00:00 2001 From: James Tabor Date: Sat, 3 Jan 2009 02:20:50 +0000 Subject: [PATCH] - Add check for null Wnd, see bug 3995. svn path=/trunk/; revision=38517 --- reactos/subsystems/win32/win32k/ntuser/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/window.c b/reactos/subsystems/win32/win32k/ntuser/window.c index eaa89d4b5eb..328775bee8a 100644 --- a/reactos/subsystems/win32/win32k/ntuser/window.c +++ b/reactos/subsystems/win32/win32k/ntuser/window.c @@ -4562,7 +4562,7 @@ NtUserDefSetText(HWND hWnd, PUNICODE_STRING WindowText) UserEnterExclusive(); - if(!(Window = UserGetWindowObject(hWnd))) + if(!(Window = UserGetWindowObject(hWnd)) || !Window->Wnd) { UserLeave(); return FALSE;