https://bugs.winehq.org/show_bug.cgi?id=44294
Bug ID: 44294 Summary: Possible access to unintended macro in "wine/dlls/comdlg32/fontdlg.c" line 592 Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: comdlg32 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/comdlg32/fontdlg.c" line 592, function CFn_FitCharSet
SendDlgItemMessageW(hDlg, cmb5, CB_SETCURSEL, i, 0); SendMessageW(hDlg, WM_COMMAND, MAKEWPARAM(cmb5, CBN_SELCHANGE), (LPARAM)GetDlgItem(hDlg,cmb2)); //HERE return TRUE;
Is it correct to use cmb2 in that line? Or cmb5 should have been used instead? Similar in line 599. Or, there might be some kind of relation between cmd5 and cmd2 (that is not clear to me)?
Thanks, Petru Florin Mihancea