From: Stefan Csomor Date: Wed, 19 Apr 2006 16:43:08 +0000 (+0000) Subject: fixing two unicode compile errors X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0cc00f4f48b6c480648b87520cc006abf3cc2bf5 fixing two unicode compile errors git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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);