wbemprox: Return an empty array for __DERIVATION.

Based on a patch by Louis Lenders.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51871
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 2243229043)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
Hans Leidekker 2021-10-13 12:48:44 +02:00 committed by Michael Stefaniuc
parent 56b6abd5ea
commit b5eebf644a
2 changed files with 14 additions and 0 deletions

View File

@ -1001,6 +1001,19 @@ static HRESULT get_system_propval( const struct view *view, UINT table_index, UI
if (type) *type = CIM_STRING;
return S_OK;
}
if (!wcsicmp( name, L"__DERIVATION" ))
{
if (ret)
{
SAFEARRAY *sa;
FIXME( "returning empty array for __DERIVATION\n" );
if (!(sa = SafeArrayCreateVector( VT_BSTR, 0, 0 ))) return E_OUTOFMEMORY;
V_VT( ret ) = VT_BSTR | VT_ARRAY;
V_ARRAY( ret ) = sa;
}
if (type) *type = CIM_STRING | CIM_FLAG_ARRAY;
return S_OK;
}
FIXME("system property %s not implemented\n", debugstr_w(name));
return WBEM_E_NOT_FOUND;
}

View File

@ -1514,6 +1514,7 @@ static void test_Win32_VideoController( IWbemServices *services )
if (hr != S_OK) break;
check_property( obj, L"__CLASS", VT_BSTR, CIM_STRING );
check_property( obj, L"__DERIVATION", VT_BSTR | VT_ARRAY, CIM_STRING | CIM_FLAG_ARRAY );
check_property( obj, L"__GENUS", VT_I4, CIM_SINT32 );
check_property( obj, L"__NAMESPACE", VT_BSTR, CIM_STRING );
check_property( obj, L"__PATH", VT_BSTR, CIM_STRING );