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
http://bugs.winehq.org/show_bug.cgi?id=44289
KRosUser kyle.kcsoftwares@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kyle.kcsoftwares@gmail.com
--- Comment #1 from KRosUser kyle.kcsoftwares@gmail.com --- infoPtr->hwndCombo is still used in Wine 10.8 here : https://github.com/wine-mirror/wine/blob/master/dlls/comctl32/comboex.c#L101...
Any confirmation it's a bug ? Otherwise, to be CLOSED ?