mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 11:45:37 +00:00
Fixed crashing bug with IME support
This commit is contained in:
parent
2c7d6571f3
commit
9bc9c45f61
@ -3582,7 +3582,7 @@ nsWindow::MapDBCSAtrributeArrayToUnicodeOffsets(PRUint32* textRangeListLengthRes
|
||||
substringLength = ::MultiByteToWideChar(CP_ACP,MB_PRECOMPOSED,mIMECompositionString,
|
||||
mIMECompositionStringLength,NULL,0);
|
||||
(*textRangeListResult)[0].mEndOffset = substringLength;
|
||||
(*textRangeListResult)[0].mRangeType = mIMEAttributeString[0];
|
||||
(*textRangeListResult)[0].mRangeType = NS_TEXTRANGE_RAWINPUT;
|
||||
substringLength = ::MultiByteToWideChar(CP_ACP,MB_PRECOMPOSED,mIMECompositionString,
|
||||
mIMECursorPosition,NULL,0);
|
||||
(*textRangeListResult)[0].mStartOffset=substringLength;
|
||||
|
Loading…
Reference in New Issue
Block a user