fixing two unicode compile errors
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 19 Apr 2006 16:43:08 +0000 (16:43 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 19 Apr 2006 16:43:08 +0000 (16:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/toplevel.cpp

index d0519c95c6a3cd86f113301afc05ed3985cd823b..4af633107f71f4aae4b7d64f07d4d404c7f3dafc 100644 (file)
@@ -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);