]> git.saurik.com Git - wxWidgets.git/commit
Don't use dangling pointers in wxWindowMSW::HandleMenuChar().
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 12 Jul 2010 22:50:28 +0000 (22:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 12 Jul 2010 22:50:28 +0000 (22:50 +0000)
commit4193a1a4a4feffc84d39eff1d7ce1acdc663eff7
tree79f620a082f9126b019ad588c982e7a57f6e78b9
parentfd76c6a77d9b0965534ed08e4aab979235370a44
Don't use dangling pointers in wxWindowMSW::HandleMenuChar().

We used a pointer into the result of wx_str() for a temporary string which was
clearly wrong. Store the string we're manipulating to ensure that this doesn't
happen.

This in particular fixes keyboard navigation in the menus with owner-drawn
items.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/window.cpp