Commit f884cf0d authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

avifil32: Add missing AddRefs in IAVIFile_QueryInterface().

parent 5dbe1360
...@@ -251,13 +251,16 @@ static HRESULT WINAPI IAVIFile_fnQueryInterface(IAVIFile *iface, REFIID refiid, ...@@ -251,13 +251,16 @@ static HRESULT WINAPI IAVIFile_fnQueryInterface(IAVIFile *iface, REFIID refiid,
if (IsEqualGUID(&IID_IUnknown, refiid) || if (IsEqualGUID(&IID_IUnknown, refiid) ||
IsEqualGUID(&IID_IAVIFile, refiid)) { IsEqualGUID(&IID_IAVIFile, refiid)) {
*obj = iface; *obj = iface;
IAVIFile_AddRef(iface);
return S_OK; return S_OK;
} else if (This->fInfo.dwStreams == 1 && } else if (This->fInfo.dwStreams == 1 &&
IsEqualGUID(&IID_IAVIStream, refiid)) { IsEqualGUID(&IID_IAVIStream, refiid)) {
*obj = &This->iAVIStream; *obj = &This->iAVIStream;
IAVIFile_AddRef(iface);
return S_OK; return S_OK;
} else if (IsEqualGUID(&IID_IPersistFile, refiid)) { } else if (IsEqualGUID(&IID_IPersistFile, refiid)) {
*obj = &This->iPersistFile; *obj = &This->iPersistFile;
IAVIFile_AddRef(iface);
return S_OK; return S_OK;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment