Zhiyi Zhang (@zhiyi) commented about dlls/comctl32/tests/syslink.c:
> }
>
> defwndproc_counter++;
> - ret = DefWindowProcW(hwnd, message, wParam, lParam);
> + switch(message)
You only need to record nml->item.iLink so you don't really need to process the message. So you can move this switch statement before defwndproc_counter++ and let the DefWindowProcW() handle it. Basically, add a switch statement, record nml->item.iLink from WM_NOTIFY, and break on other messages.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/3114#note_38452
Fixes regression introduced by 35c8f15bc67f7602438fe0c39a69ff6ddf6b8297
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55215
We already test for an invalid pointer, those tests don't really help.
The test against DrawTextA crashes on windows sometimes, the other test shows that windows probably just overruns the stack variable:
`textheight = DrawTextExA((HDC)0xdeadbeef, (LPSTR)0xdeadbeef, 100, &rect, 0, 0);`
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/3276