mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 522767: Fix off by one error at nsDataObj::GetFile, r=jmathies,sr=roc
This commit is contained in:
parent
f3c75a5163
commit
396fd8cc7b
@ -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