Commit 2568c466 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

ole32: IPeristStream implies IPersist and IStream implies ISequentialStream so…

ole32: IPeristStream implies IPersist and IStream implies ISequentialStream so fix the Structured Storage stream implementation's QueryInterface with to reflect this.
parent 482063bc
......@@ -121,9 +121,11 @@ static HRESULT WINAPI StgStreamImpl_QueryInterface(
/*
* Compare the riid with the interface IDs implemented by this object.
*/
if (IsEqualGUID(&IID_IUnknown, riid)||
IsEqualGUID(&IID_IPersistStream, riid)||
IsEqualGUID(&IID_IStream, riid))
if (IsEqualIID(&IID_IUnknown, riid) ||
IsEqualIID(&IID_IPersist, riid) ||
IsEqualIID(&IID_IPersistStream, riid) ||
IsEqualIID(&IID_ISequentialStream, riid) ||
IsEqualIID(&IID_IStream, riid))
{
*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