NtUserMessageCall(..., NtUserSendDriverMessage) does not ensure the
validity of the hwnd, so this check will incorrectly fail if the
last error was ERROR_INVALID_WINDOW_HANDLE by coincidence. The
notify_owner call immediately following this code will catch a
destroyed owner hwnd.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/3147
On Fri Jun 23 19:02:05 2023 +0000, Davide Beatrici wrote:
> I would expect the same behavior for `PFD_DRAW_TO_BITMAP` though. Aren't
> both the same flag "class"?
I guess we need more tests to be sure.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/3111#note_36674