Window handle is not valid anymore when the object is in "destroyed" state

svn path=/trunk/; revision=17759
This commit is contained in:
Gé van Geldorp 2005-09-09 09:50:58 +00:00
parent 704232a50f
commit 1dc718065f

View file

@ -117,7 +117,7 @@ PWINDOW_OBJECT FASTCALL UserGetWindowObject(HWND hWnd)
if (!hWnd) return NULL; if (!hWnd) return NULL;
Window = (PWINDOW_OBJECT)UserGetObject(&gHandleTable, hWnd, otWindow); Window = (PWINDOW_OBJECT)UserGetObject(&gHandleTable, hWnd, otWindow);
if (!Window) if (!Window || 0 != (Window->Status & WINDOWSTATUS_DESTROYED))
{ {
SetLastWin32Error(ERROR_INVALID_WINDOW_HANDLE); SetLastWin32Error(ERROR_INVALID_WINDOW_HANDLE);
return NULL; return NULL;