mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 506645 nsTypedSelection::AddItem doesn't always null check aOutIndex
r=smaug
This commit is contained in:
parent
9206ce3751
commit
854b7b365e
@ -3741,6 +3741,7 @@ nsTypedSelection::AddItem(nsIRange *aItem, PRInt32 *aOutIndex)
|
|||||||
aItem->GetEndParent(),
|
aItem->GetEndParent(),
|
||||||
aItem->EndOffset(), startIndex);
|
aItem->EndOffset(), startIndex);
|
||||||
if (sameRange) {
|
if (sameRange) {
|
||||||
|
if (aOutIndex)
|
||||||
*aOutIndex = startIndex;
|
*aOutIndex = startIndex;
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user