oleaut32: Add IPersist to QueryInterface.
This commit is contained in:
parent
11c83c5d5e
commit
22e7eeb2a3
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue