mirror of
https://github.com/reactos/wine.git
synced 2025-01-22 11:54:47 +00:00
avifil32: Add missing AddRefs in IAVIFile_QueryInterface().
This commit is contained in:
parent
5dbe136027
commit
f884cf0ddf
@ -251,13 +251,16 @@ static HRESULT WINAPI IAVIFile_fnQueryInterface(IAVIFile *iface, REFIID refiid,
|
||||
if (IsEqualGUID(&IID_IUnknown, refiid) ||
|
||||
IsEqualGUID(&IID_IAVIFile, refiid)) {
|
||||
*obj = iface;
|
||||
IAVIFile_AddRef(iface);
|
||||
return S_OK;
|
||||
} else if (This->fInfo.dwStreams == 1 &&
|
||||
IsEqualGUID(&IID_IAVIStream, refiid)) {
|
||||
*obj = &This->iAVIStream;
|
||||
IAVIFile_AddRef(iface);
|
||||
return S_OK;
|
||||
} else if (IsEqualGUID(&IID_IPersistFile, refiid)) {
|
||||
*obj = &This->iPersistFile;
|
||||
IAVIFile_AddRef(iface);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user