Robert Shearman : oleaut32: Add IPersist to QueryInterface.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Mar 30 05:44:12 CST 2006
Module: wine
Branch: refs/heads/master
Commit: 22e7eeb2a3366667e2a1ac9a582fa7e97a4c927b
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=22e7eeb2a3366667e2a1ac9a582fa7e97a4c927b
Author: Robert Shearman <rob at codeweavers.com>
Date: Wed Mar 29 18:41:24 2006 +0100
oleaut32: Add IPersist to QueryInterface.
---
dlls/oleaut32/olefont.c | 2 +-
dlls/oleaut32/olepicture.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/oleaut32/olefont.c b/dlls/oleaut32/olefont.c
index a9110e7..a73ceb5 100644
--- a/dlls/oleaut32/olefont.c
+++ b/dlls/oleaut32/olefont.c
@@ -586,7 +586,7 @@ HRESULT WINAPI OLEFontImpl_QueryInterfac
*ppvObject = (IDispatch*)&(this->lpvtblIDispatch);
if (IsEqualGUID(&IID_IFontDisp, riid))
*ppvObject = (IDispatch*)&(this->lpvtblIDispatch);
- if (IsEqualGUID(&IID_IPersistStream, riid))
+ if (IsEqualIID(&IID_IPersist, riid) || IsEqualGUID(&IID_IPersistStream, riid))
*ppvObject = (IPersistStream*)&(this->lpvtblIPersistStream);
if (IsEqualGUID(&IID_IConnectionPointContainer, riid))
*ppvObject = (IConnectionPointContainer*)&(this->lpvtblIConnectionPointContainer);
diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c
index 74c7fa0..7e2acab 100644
--- a/dlls/oleaut32/olepicture.c
+++ b/dlls/oleaut32/olepicture.c
@@ -457,7 +457,7 @@ static HRESULT WINAPI OLEPictureImpl_Que
*ppvObject = (IDispatch*)&(This->lpvtblIDispatch);
else if (IsEqualIID(&IID_IPictureDisp, riid))
*ppvObject = (IDispatch*)&(This->lpvtblIDispatch);
- else if (IsEqualIID(&IID_IPersistStream, riid))
+ else if (IsEqualIID(&IID_IPersist, riid) || IsEqualIID(&IID_IPersistStream, riid))
*ppvObject = (IPersistStream*)&(This->lpvtblIPersistStream);
else if (IsEqualIID(&IID_IConnectionPointContainer, riid))
*ppvObject = (IConnectionPointContainer*)&(This->lpvtblIConnectionPointContainer);
More information about the wine-cvs
mailing list