mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
bug 292723 pReconv->dwSize value is invalid. it makes cause crash on win9x at reconverting with ATOK. r=timeless, sr=bzbarsky, a=asa
This commit is contained in:
parent
d7f85e1518
commit
ef02ea57ab
@ -7056,8 +7056,14 @@ PRBool nsWindow::OnIMEReconvert(LPARAM aData, LRESULT *oResult, PRBool aUseUnico
|
||||
*oResult = sizeof(RECONVERTSTRING) + len;
|
||||
}
|
||||
|
||||
::ZeroMemory(pReconv, sizeof(RECONVERTSTRING));
|
||||
pReconv->dwSize = sizeof(RECONVERTSTRING);
|
||||
if (pReconv->dwSize < *oResult) {
|
||||
*oResult = 0;
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
DWORD tmpSize = pReconv->dwSize;
|
||||
::ZeroMemory(pReconv, tmpSize);
|
||||
pReconv->dwSize = tmpSize;
|
||||
pReconv->dwVersion = 0;
|
||||
pReconv->dwStrLen = len;
|
||||
pReconv->dwStrOffset = sizeof(RECONVERTSTRING);
|
||||
|
Loading…
Reference in New Issue
Block a user