mirror of
https://github.com/reactos/wine.git
synced 2024-11-23 20:00:00 +00:00
wbemdisp: Return interface pointers from QI, not object pointers.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c0a5b1eab9
commit
b47462d777
@ -155,7 +155,7 @@ static HRESULT WINAPI object_QueryInterface(
|
||||
IsEqualGUID( riid, &IID_IDispatch ) ||
|
||||
IsEqualGUID( riid, &IID_IUnknown ))
|
||||
{
|
||||
*ppvObject = object;
|
||||
*ppvObject = iface;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -399,7 +399,7 @@ static HRESULT WINAPI objectset_QueryInterface(
|
||||
IsEqualGUID( riid, &IID_IDispatch ) ||
|
||||
IsEqualGUID( riid, &IID_IUnknown ))
|
||||
{
|
||||
*ppvObject = objectset;
|
||||
*ppvObject = iface;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -630,7 +630,7 @@ static HRESULT WINAPI enumvar_QueryInterface(
|
||||
if (IsEqualGUID( riid, &IID_IEnumVARIANT ) ||
|
||||
IsEqualGUID( riid, &IID_IUnknown ))
|
||||
{
|
||||
*ppvObject = enumvar;
|
||||
*ppvObject = iface;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -763,7 +763,7 @@ static HRESULT WINAPI services_QueryInterface(
|
||||
IsEqualGUID( riid, &IID_IDispatch ) ||
|
||||
IsEqualGUID( riid, &IID_IUnknown ))
|
||||
{
|
||||
*ppvObject = services;
|
||||
*ppvObject = iface;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user