Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird bug with VS 2010 Release build of v7.23.5 #80

Open
GoogleCodeExporter opened this issue Sep 2, 2015 · 1 comment
Open

Weird bug with VS 2010 Release build of v7.23.5 #80

GoogleCodeExporter opened this issue Sep 2, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 28 Nov 2011 at 10:10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant