https://bugs.winehq.org/show_bug.cgi?id=54194
--- Comment #5 from Esme Povirk madewokherd@gmail.com --- Posted MR: https://gitlab.winehq.org/wine/wine/-/merge_requests/3862
The GetLastError value may be misleading because it isn't set to a known value before calling SendMessageTimeout.