What steps will reproduce the problem?
1. Release-Build the v7.23.5 source.
2. Launch the built executable.
3. Click on menu Options->Input->Customize All Commands... and open the hotkey
config dialog.
4. Focus in the "Enter the new accelerator:" edit box, press any
key-combination that contains the M key on the keyboard.
What is the expected output? What do you see instead?
The correct name of the key-combonation should be displayed in the edit box.
Instead, the 'M' character is always replaced with a 'K' character.
Apparently, when the executable is running, something overwrites the first
element of MAPVIRTKEYS mapVirtKeys[] (defined in src/win32/CmdAccelOb.cpp),
changing its values from { 1, "LBUTTON" } to { 77, "K" }. By changing how the
compilation units is structured, or making the array in question const, this
bug disappears from observation. This bug is not observed on a Debug build.
It is unknown whether this is related to the GB Disassemble Dialog crashing bug
that was mysteriously fixed upon r354 by re-ordering the definitions of some
member variables of class GBDisassemble in src/win32/GBDisassemble.h. The
culprit is still unidentified.
Original issue reported on code.google.com by aquan...@gmail.com on 28 Nov 2011 at 10:10
Original issue reported on code.google.com by
aquan...@gmail.com
on 28 Nov 2011 at 10:10