amstream: Fix AddRef calls.
This commit is contained in:
parent
33f41d1538
commit
01624ea6c2
|
@ -82,7 +82,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_QueryInterface(IAMMultiMediaStream
|
|||
IsEqualGUID(riid, &IID_IMultiMediaStream) ||
|
||||
IsEqualGUID(riid, &IID_IAMMultiMediaStream))
|
||||
{
|
||||
IClassFactory_AddRef(iface);
|
||||
IUnknown_AddRef(iface);
|
||||
*ppvObject = This;
|
||||
return S_OK;
|
||||
}
|
||||
|
|
|
@ -89,7 +89,7 @@ static HRESULT WINAPI IMediaStreamImpl_QueryInterface(IMediaStream* iface, REFII
|
|||
if (IsEqualGUID(riid, &IID_IUnknown) ||
|
||||
IsEqualGUID(riid, &IID_IMediaStream))
|
||||
{
|
||||
IClassFactory_AddRef(iface);
|
||||
IUnknown_AddRef(iface);
|
||||
*ppvObject = This;
|
||||
return S_OK;
|
||||
}
|
||||
|
@ -229,7 +229,7 @@ static HRESULT WINAPI IDirectDrawMediaStreamImpl_QueryInterface(IDirectDrawMedia
|
|||
IsEqualGUID(riid, &IID_IMediaStream) ||
|
||||
IsEqualGUID(riid, &IID_IDirectDrawMediaStream))
|
||||
{
|
||||
IClassFactory_AddRef(iface);
|
||||
IUnknown_AddRef(iface);
|
||||
*ppvObject = This;
|
||||
return S_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue