mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Window handle is not valid anymore when the object is in "destroyed" state
svn path=/trunk/; revision=17759
This commit is contained in:
parent
704232a50f
commit
1dc718065f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue