[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:
Katayama Hirofumi MZ 2020-08-18 05:32:44 +09:00 committed by GitHub
parent 46ff964e22
commit 81f28d454a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}