Commit 73a0ddfa authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

oleaut32/tests: Correctly return interface pointer.

parent 7bcca927
......@@ -1391,14 +1391,9 @@ static HRESULT WINAPI NoStatStreamImpl_QueryInterface(
NoStatStreamImpl* const This = impl_from_IStream(iface);
if (ppvObject==0) return E_INVALIDARG;
*ppvObject = 0;
if (IsEqualIID(&IID_IUnknown, riid))
{
*ppvObject = This;
}
else if (IsEqualIID(&IID_IStream, riid))
{
*ppvObject = This;
}
if (IsEqualIID(&IID_IUnknown, riid) || IsEqualIID(&IID_IStream, riid))
*ppvObject = &This->IStream_iface;
if ((*ppvObject)==0)
return E_NOINTERFACE;
......
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