Patch: Win32 crash fix


Subject: Patch: Win32 crash fix
From: Andrew Dunbar (hippietrail@yahoo.com)
Date: Fri May 18 2001 - 05:53:14 CDT


Here's a patch to fix the bug which causes a crash when you try to
enter characters on Windows. This has existed for at least a week -
is anybody else building for Windows right now?

Andrew.

-- 
http://linguaphile.sourceforge.net

RCS file: /cvsroot/abi/src/af/ev/win/ev_Win32Keyboard.cpp,v retrieving revision 1.23 diff -u -r1.23 ev_Win32Keyboard.cpp --- src/af/ev/win/ev_Win32Keyboard.cpp 2001/02/06 22:53:54 1.23 +++ src/af/ev/win/ev_Win32Keyboard.cpp 2001/05/18 10:35:36 @@ -544,8 +544,13 @@ break; case EV_EEMR_COMPLETE: - UT_ASSERT(pEM); - invokeKeyboardMethod(pView,pEM,&charData,1); + { + UT_ASSERT(pEM); + UT_UCSChar *ucs = new UT_UCSChar[1]; + ucs[0] = charData; + invokeKeyboardMethod(pView,pEM,ucs,1); + delete [] ucs; + } break; case EV_EEMR_INCOMPLETE: Index: src/af/util/xp/ut_mbtowc.cpp ===================================================================

_________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com



This archive was generated by hypermail 2b25 : Sat May 26 2001 - 03:51:04 CDT