Rob Shearman : ole32:
IPeristStream implies IPersist and IStream implies ISequentialStream so
fix the Structured Storage stream implementation
's QueryInterface with to reflect this.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jan 8 06:35:38 CST 2007
Module: wine
Branch: master
Commit: 2568c4662a1d4f139f9e3d0810f7a03bc58761d3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2568c4662a1d4f139f9e3d0810f7a03bc58761d3
Author: Rob Shearman <rob at 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;
}
More information about the wine-cvs
mailing list