mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
wbemprox: Handle __ProviderArchitecture in EnumValues().
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
96d2d67308
commit
045c4a5edb
1 changed files with 4 additions and 3 deletions
|
@ -270,7 +270,8 @@ done:
|
|||
return hr;
|
||||
}
|
||||
|
||||
static HRESULT enum_values( HKEY root, const WCHAR *subkey, VARIANT *names, VARIANT *types, VARIANT *retval )
|
||||
static HRESULT enum_values( HKEY root, const WCHAR *subkey, VARIANT *names, VARIANT *types, IWbemContext *context,
|
||||
VARIANT *retval )
|
||||
{
|
||||
HKEY hkey = NULL;
|
||||
HRESULT hr = S_OK;
|
||||
|
@ -281,7 +282,7 @@ static HRESULT enum_values( HKEY root, const WCHAR *subkey, VARIANT *names, VARI
|
|||
|
||||
TRACE("%p, %s\n", root, debugstr_w(subkey));
|
||||
|
||||
if ((res = RegOpenKeyExW( root, subkey, 0, KEY_QUERY_VALUE, &hkey ))) goto done;
|
||||
if ((res = RegOpenKeyExW( root, subkey, 0, KEY_QUERY_VALUE | reg_get_access_mask( context ), &hkey ))) goto done;
|
||||
if ((res = RegQueryInfoKeyW( hkey, NULL, NULL, NULL, NULL, NULL, NULL, &count, &buflen, NULL, NULL, NULL )))
|
||||
goto done;
|
||||
|
||||
|
@ -356,7 +357,7 @@ HRESULT reg_enum_values( IWbemClassObject *obj, IWbemContext *context, IWbemClas
|
|||
}
|
||||
VariantInit( &names );
|
||||
VariantInit( &types );
|
||||
hr = enum_values( (HKEY)(INT_PTR)V_I4(&defkey), V_BSTR(&subkey), &names, &types, &retval );
|
||||
hr = enum_values( (HKEY)(INT_PTR)V_I4(&defkey), V_BSTR(&subkey), &names, &types, context, &retval );
|
||||
if (hr != S_OK) goto done;
|
||||
if (out_params)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue