mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +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
1 changed files with 1 additions and 1 deletions
|
@ -1423,7 +1423,7 @@ UserPostMessage( HWND Wnd,
|
|||
if ( Window->state & WNDS_DESTROYED )
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue