X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f309770945e38584971cc551119d441b14492f4e..7760051f27b3f96f5dccd07c3509d27abefb0bc9:/src/mac/carbon/toplevel.cpp?ds=sidebyside diff --git a/src/mac/carbon/toplevel.cpp b/src/mac/carbon/toplevel.cpp index d0519c95c6..4af633107f 100644 --- a/src/mac/carbon/toplevel.cpp +++ b/src/mac/carbon/toplevel.cpp @@ -149,7 +149,7 @@ static pascal OSStatus KeyboardEventHandler( EventHandlerCallRef handler , Event uniChar = charBuf[0] ; #else wxMBConvUTF16 converter ; - converter.MB2WC( &uniChar , (const char*)charBuf , 2 ) ; + converter.MB2WC( uniChar , (const char*)charBuf , 2 ) ; #endif if ( numChars * 2 > 4 ) @@ -200,7 +200,7 @@ static pascal OSStatus KeyboardEventHandler( EventHandlerCallRef handler , Event event.m_y = point.v; #if wxUSE_UNICODE - event.m_uniChar = uniChar ; + event.m_uniChar = uniChar[0] ; #endif event.SetTimestamp(when);