The object returned by IEnumFORMATETC::Clone should have the same
cursor position of the source object.
This commit is contained in:
parent
d9159093a5
commit
ded2b88e06
|
@ -189,6 +189,8 @@ static HRESULT WINAPI IEnumFORMATETC_fnClone(LPENUMFORMATETC iface, LPENUMFORMAT
|
||||||
|
|
||||||
if (!ppenum) return E_INVALIDARG;
|
if (!ppenum) return E_INVALIDARG;
|
||||||
*ppenum = IEnumFORMATETC_Constructor(This->countFmt, This->pFmt);
|
*ppenum = IEnumFORMATETC_Constructor(This->countFmt, This->pFmt);
|
||||||
|
if(*ppenum)
|
||||||
|
IEnumFORMATETC_fnSkip(*ppenum, This->posFmt);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue