Module: wine Branch: master Commit: 2568c4662a1d4f139f9e3d0810f7a03bc58761d3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2568c4662a1d4f139f9e3d0810...
Author: Rob Shearman rob@codeweavers.com Date: Sun Jan 7 12:16:04 2007 +0000
ole32: IPeristStream implies IPersist and IStream implies ISequentialStream so fix the Structured Storage stream implementation's QueryInterface with to reflect this.
---
dlls/ole32/stg_stream.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/dlls/ole32/stg_stream.c b/dlls/ole32/stg_stream.c index 467c3fc..63bdaad 100644 --- a/dlls/ole32/stg_stream.c +++ b/dlls/ole32/stg_stream.c @@ -121,9 +121,11 @@ static HRESULT WINAPI StgStreamImpl_Quer /* * 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; }