ole32: IPeristStream implies IPersist and IStream implies ISequentialStream so fix the Structured Storage stream implementation's QueryInterface with to reflect this.
This commit is contained in:
parent
482063bc29
commit
2568c4662a
|
@ -121,9 +121,11 @@ static HRESULT WINAPI StgStreamImpl_QueryInterface(
|
||||||
/*
|
/*
|
||||||
* Compare the riid with the interface IDs implemented by this object.
|
* Compare the riid with the interface IDs implemented by this object.
|
||||||
*/
|
*/
|
||||||
if (IsEqualGUID(&IID_IUnknown, riid)||
|
if (IsEqualIID(&IID_IUnknown, riid) ||
|
||||||
IsEqualGUID(&IID_IPersistStream, riid)||
|
IsEqualIID(&IID_IPersist, riid) ||
|
||||||
IsEqualGUID(&IID_IStream, riid))
|
IsEqualIID(&IID_IPersistStream, riid) ||
|
||||||
|
IsEqualIID(&IID_ISequentialStream, riid) ||
|
||||||
|
IsEqualIID(&IID_IStream, riid))
|
||||||
{
|
{
|
||||||
*ppvObject = (IStream*)This;
|
*ppvObject = (IStream*)This;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue