oleaut32: Add IPersist to QueryInterface.

This commit is contained in:
Robert Shearman 2006-03-29 18:41:24 +01:00 committed by Alexandre Julliard
parent 11c83c5d5e
commit 22e7eeb2a3
2 changed files with 2 additions and 2 deletions

View File

@ -586,7 +586,7 @@ HRESULT WINAPI OLEFontImpl_QueryInterface(
*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);

View File

@ -457,7 +457,7 @@ static HRESULT WINAPI OLEPictureImpl_QueryInterface(
*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);