wbemdisp: Pass context value to ExecMethod().

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:
Nikolay Sivov 2021-03-02 09:25:07 +03:00 committed by Alexandre Julliard
parent 93858d787d
commit 8ea157aca6
1 changed files with 3 additions and 3 deletions

View File

@ -2499,6 +2499,7 @@ static HRESULT WINAPI services_ExecMethod(
struct services *services = impl_from_ISWbemServices( iface ); struct services *services = impl_from_ISWbemServices( iface );
IWbemClassObject *out_params = NULL; IWbemClassObject *out_params = NULL;
struct object *in_params; struct object *in_params;
IWbemContext *context;
HRESULT hr; HRESULT hr;
TRACE( "%p, %s, %s, %p, %#x, %p, %p\n", services, debugstr_w(path), debugstr_w(method), in_sparams, TRACE( "%p, %s, %s, %p, %#x, %p, %p\n", services, debugstr_w(path), debugstr_w(method), in_sparams,
@ -2507,10 +2508,9 @@ static HRESULT WINAPI services_ExecMethod(
in_params = unsafe_object_impl_from_IDispatch( in_sparams ); in_params = unsafe_object_impl_from_IDispatch( in_sparams );
out_params = NULL; out_params = NULL;
if (valueset) context = unsafe_get_context_from_namedvalueset( valueset );
FIXME("Named value set is unused\n");
hr = IWbemServices_ExecMethod( services->services, path, method, flags, NULL, in_params ? in_params->object : NULL, hr = IWbemServices_ExecMethod( services->services, path, method, flags, context, in_params ? in_params->object : NULL,
out_sparams ? &out_params : NULL, NULL ); out_sparams ? &out_params : NULL, NULL );
if (SUCCEEDED(hr) && out_params) if (SUCCEEDED(hr) && out_params)