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>
This commit is contained in:
Hans Leidekker 2021-10-13 12:48:44 +02:00 committed by Alexandre Julliard
parent 099a8bbfd3
commit 2243229043
2 changed files with 14 additions and 0 deletions

View File

@ -1006,6 +1006,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

@ -1642,6 +1642,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 );