Commit 9e54ae76 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

oleaut32: Return proper interface pointers.

parent 3769d575
...@@ -461,7 +461,7 @@ static HRESULT WINAPI OLEPictureImpl_QueryInterface( ...@@ -461,7 +461,7 @@ static HRESULT WINAPI OLEPictureImpl_QueryInterface(
*ppvObject = 0; *ppvObject = 0;
if (IsEqualIID(&IID_IUnknown, riid) || IsEqualIID(&IID_IPicture, riid)) if (IsEqualIID(&IID_IUnknown, riid) || IsEqualIID(&IID_IPicture, riid))
*ppvObject = This; *ppvObject = &This->IPicture_iface;
else if (IsEqualIID(&IID_IDispatch, riid)) else if (IsEqualIID(&IID_IDispatch, riid))
*ppvObject = &This->IDispatch_iface; *ppvObject = &This->IDispatch_iface;
else if (IsEqualIID(&IID_IPictureDisp, riid)) else if (IsEqualIID(&IID_IPictureDisp, riid))
......
...@@ -5579,7 +5579,7 @@ static HRESULT WINAPI ITypeInfo_fnQueryInterface( ...@@ -5579,7 +5579,7 @@ static HRESULT WINAPI ITypeInfo_fnQueryInterface(
if(IsEqualIID(riid, &IID_IUnknown) || if(IsEqualIID(riid, &IID_IUnknown) ||
IsEqualIID(riid,&IID_ITypeInfo)|| IsEqualIID(riid,&IID_ITypeInfo)||
IsEqualIID(riid,&IID_ITypeInfo2)) IsEqualIID(riid,&IID_ITypeInfo2))
*ppvObject = This; *ppvObject = &This->ITypeInfo2_iface;
else if(IsEqualIID(riid, &IID_ICreateTypeInfo) || else if(IsEqualIID(riid, &IID_ICreateTypeInfo) ||
IsEqualIID(riid, &IID_ICreateTypeInfo2)) IsEqualIID(riid, &IID_ICreateTypeInfo2))
*ppvObject = &This->ICreateTypeInfo2_iface; *ppvObject = &This->ICreateTypeInfo2_iface;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment