https://bugs.winehq.org/show_bug.cgi?id=39557
Bug ID: 39557 Summary: Dead code in IsDialogMessageW Product: Wine Version: 1.7.54 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: user32 Assignee: wine-bugs@winehq.org Reporter: alexhenrie24@gmail.com Distribution: ---
IsDialogMessageW sets dlgCode to 0, then under VK_UP checks if (!(dlgCode & DLGC_WANTARROWS)). This if statement can never be true.
https://source.winehq.org/git/wine.git/blob/cbaab82d086e36dacaa22c6adf80f911...
https://bugs.winehq.org/show_bug.cgi?id=39557
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source CC| |julliard@winehq.org
https://bugs.winehq.org/show_bug.cgi?id=39557
Carlo Bramini carlo.bramix@libero.it changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |carlo.bramix@libero.it
--- Comment #1 from Carlo Bramini carlo.bramix@libero.it --- In my opinion, 'dlgCode' is initialized on top of WM_KEYDOWN, before entering in the switch() statement related to virtual keys detection. If I have understood right, this bug is invalid and it should be closed.
https://bugs.winehq.org/show_bug.cgi?id=39557
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID
--- Comment #2 from Alex Henrie alexhenrie24@gmail.com --- You're right; I misread the code. As of https://source.winehq.org/git/wine.git/commitdiff/d9c8effbf3555f37bfbb3866b7... dlgCode is no longer initialized twice, so it's less confusing now.
https://bugs.winehq.org/show_bug.cgi?id=39557
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Closing Invalid.