mirror of
https://github.com/reactos/reactos.git
synced 2024-06-29 01:12:06 +00:00
[NTUSER] Set ERROR_INVALID_WINDOW_HANDLE when PostMessage failed (#3059)
Set the last error code ERROR_INVALID_WINDOW_HANDLE when user32!PostMessage failed with destroyed window. CORE-12124
This commit is contained in:
parent
46ff964e22
commit
81f28d454a
|
@ -1423,7 +1423,7 @@ UserPostMessage( HWND Wnd,
|
||||||
if ( Window->state & WNDS_DESTROYED )
|
if ( Window->state & WNDS_DESTROYED )
|
||||||
{
|
{
|
||||||
ERR("Attempted to post message to window %p that is being destroyed!\n", Wnd);
|
ERR("Attempted to post message to window %p that is being destroyed!\n", Wnd);
|
||||||
/* FIXME: Last error code? */
|
EngSetLastError(ERROR_INVALID_WINDOW_HANDLE);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue