]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/window.cpp
OS X compilation fix
[wxWidgets.git] / src / msw / window.cpp
index cc71fb2735d7853cdc081bfce8cce04c3b7b5798..26f261059f961cd491d193d5ebf64e0d44d91eb2 100644 (file)
@@ -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('&') )