- Add check for null Wnd, see bug 3995.

svn path=/trunk/; revision=38517
This commit is contained in:
James Tabor 2009-01-03 02:20:50 +00:00
parent 33ff58086c
commit 140f031357

View file

@ -4562,7 +4562,7 @@ NtUserDefSetText(HWND hWnd, PUNICODE_STRING WindowText)
UserEnterExclusive();
if(!(Window = UserGetWindowObject(hWnd)))
if(!(Window = UserGetWindowObject(hWnd)) || !Window->Wnd)
{
UserLeave();
return FALSE;