Commit 482063bc authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

ole32: IStream inherits from ISequentialStream so the HGLOBALStream…

ole32: IStream inherits from ISequentialStream so the HGLOBALStream implementation must also support ISequentialStream.
parent 0c51b623
...@@ -148,11 +148,9 @@ static HRESULT WINAPI HGLOBALStreamImpl_QueryInterface( ...@@ -148,11 +148,9 @@ static HRESULT WINAPI HGLOBALStreamImpl_QueryInterface(
/* /*
* Compare the riid with the interface IDs implemented by this object. * Compare the riid with the interface IDs implemented by this object.
*/ */
if (memcmp(&IID_IUnknown, riid, sizeof(IID_IUnknown)) == 0) if (IsEqualIID(&IID_IUnknown, riid) ||
{ IsEqualIID(&IID_ISequentialStream, riid) ||
*ppvObject = (IStream*)This; IsEqualIID(&IID_IStream, riid))
}
else if (memcmp(&IID_IStream, riid, sizeof(IID_IStream)) == 0)
{ {
*ppvObject = (IStream*)This; *ppvObject = (IStream*)This;
} }
......
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