On Tue Aug 18 08:14:17 2026 +0000, Dmitry Timoshkov wrote:
It seems that the failures are intermittent. I also see the failures when running the test in a loop. I went ahead and added similar test to dlls/user32/tests.msg.c,ok_sequence_() for actual->message == WM_NCPAINT && actual->wParam != 1, and also see the failures. https://gitlab.winehq.org/wine/wine/-/merge_requests/5777 has fixed a real application and has a comment with an explanation of the bug. Could it be that for a .Net app GDI handles are generated differently or for a .Net app WM_NCPAINT has a truncated wParam? It seems like !5777 should be reverted, but I'm not sure what the correct fix is. Maybe there is something different with GDI handles or WM_NCPAINT in .Net? Or maybe on Windows the generation increments much more slowly so the bug is never triggered? Is the application publicly available?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/11566#note_149494