mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 522767: Fix off by one error at nsDataObj::GetFile, r=jmathies,sr=roc
This commit is contained in:
parent
fc3bb34534
commit
bbc421c6fe
@ -1367,11 +1367,11 @@ HRESULT nsDataObj::GetFile(FORMATETC& aFE, STGMEDIUM& aSTG)
|
||||
PRBool found = PR_FALSE;
|
||||
while (NOERROR == m_enumFE->Next(1, &fe, &count)
|
||||
&& dfInx < mDataFlavors.Length()) {
|
||||
dfInx++;
|
||||
if (mDataFlavors[dfInx].EqualsLiteral(kNativeImageMime)) {
|
||||
found = PR_TRUE;
|
||||
break;
|
||||
}
|
||||
dfInx++;
|
||||
}
|
||||
|
||||
if (!found)
|
||||
|
Loading…
Reference in New Issue
Block a user