#90595 Crash when switch to different Simplified Chinese IME a few times

r=yokoyama, sr=waterson


git-svn-id: svn://10.0.0.236/trunk@102508 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
shanjian%netscape.com 2001-09-07 03:43:07 +00:00
parent f0c275702c
commit eda91c291b

View File

@ -5473,6 +5473,7 @@ NS_IMETHODIMP nsWindow::ResetInputState()
if(hIMC) {
BOOL ret = FALSE;
NS_IMM_NOTIFYIME(hIMC, NI_COMPOSITIONSTR, CPS_COMPLETE, NULL, ret);
NS_IMM_NOTIFYIME(hIMC, NI_COMPOSITIONSTR, CPS_CANCEL, NULL, ret);
//NS_ASSERTION(ret, "ImmNotify failed");
NS_IMM_RELEASECONTEXT(mWnd, hIMC);
}