X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b46b1d59d6f69ad80dcf5955375578a6504d100a..3a3dde0d44c43bc70a1e9791381ada04b4953a5d:/src/msw/window.cpp diff --git a/src/msw/window.cpp b/src/msw/window.cpp index cc71fb2735..26f261059f 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -5229,7 +5229,7 @@ int wxWindowMSW::HandleMenuChar(int WXUNUSED_IN_WINCE(chAccel), // menu creation code wxMenuItem *item = (wxMenuItem*)mii.dwItemData; - const wxChar *p = wxStrchr(item->GetText(), _T('&')); + const wxChar *p = wxStrchr(item->GetText().wx_str(), _T('&')); while ( p++ ) { if ( *p == _T('&') )