Bug 522767: Fix off by one error at nsDataObj::GetFile, r=jmathies,sr=roc

This commit is contained in:
Kyle Huey 2009-10-27 14:45:20 +13:00
parent f3c75a5163
commit 396fd8cc7b

View File

@ -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)