https://bugs.winehq.org/show_bug.cgi?id=44289
Bug ID: 44289 Summary: Possible access to unintended field in "wine/dlls/comctl32/comboex.c" line 1033 Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: comctl32 Assignee: wine-bugs@winehq.org Reporter: petrum@gmail.com Distribution: ---
While experimenting with a CodeSonar plugin we develop, we noticed a potential bug in file "wine/dlls/comctl32/comboex.c" line 1033 function COMBOEX_Create
SetWindowSubclass(infoPtr->hwndEdit, COMBOEX_EditWndProc, EDIT_SUBCLASSID, (DWORD_PTR)hwnd);
infoPtr->font = (HFONT)SendMessageW(infoPtr->hwndCombo /*HERE*/, WM_GETFONT, 0, 0);
Shouldn't you access infoPtr->hwndEdit (instead of infoPtr->hwndCombo) at the mentioned position in the second line?
Thanks, Petru Florin Mihancea