Commit b47462d7 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

wbemdisp: Return interface pointers from QI, not object pointers.

parent c0a5b1ea
...@@ -155,7 +155,7 @@ static HRESULT WINAPI object_QueryInterface( ...@@ -155,7 +155,7 @@ static HRESULT WINAPI object_QueryInterface(
IsEqualGUID( riid, &IID_IDispatch ) || IsEqualGUID( riid, &IID_IDispatch ) ||
IsEqualGUID( riid, &IID_IUnknown )) IsEqualGUID( riid, &IID_IUnknown ))
{ {
*ppvObject = object; *ppvObject = iface;
} }
else else
{ {
...@@ -399,7 +399,7 @@ static HRESULT WINAPI objectset_QueryInterface( ...@@ -399,7 +399,7 @@ static HRESULT WINAPI objectset_QueryInterface(
IsEqualGUID( riid, &IID_IDispatch ) || IsEqualGUID( riid, &IID_IDispatch ) ||
IsEqualGUID( riid, &IID_IUnknown )) IsEqualGUID( riid, &IID_IUnknown ))
{ {
*ppvObject = objectset; *ppvObject = iface;
} }
else else
{ {
...@@ -630,7 +630,7 @@ static HRESULT WINAPI enumvar_QueryInterface( ...@@ -630,7 +630,7 @@ static HRESULT WINAPI enumvar_QueryInterface(
if (IsEqualGUID( riid, &IID_IEnumVARIANT ) || if (IsEqualGUID( riid, &IID_IEnumVARIANT ) ||
IsEqualGUID( riid, &IID_IUnknown )) IsEqualGUID( riid, &IID_IUnknown ))
{ {
*ppvObject = enumvar; *ppvObject = iface;
} }
else else
{ {
...@@ -763,7 +763,7 @@ static HRESULT WINAPI services_QueryInterface( ...@@ -763,7 +763,7 @@ static HRESULT WINAPI services_QueryInterface(
IsEqualGUID( riid, &IID_IDispatch ) || IsEqualGUID( riid, &IID_IDispatch ) ||
IsEqualGUID( riid, &IID_IUnknown )) IsEqualGUID( riid, &IID_IUnknown ))
{ {
*ppvObject = services; *ppvObject = iface;
} }
else else
{ {
......
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