Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
64a7f2ea
Commit
64a7f2ea
authored
Oct 17, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: The last parameter to IWbemClassObject::GetMethod is optional.
parent
2eb666d6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
class.c
dlls/wbemprox/class.c
+1
-1
query.c
dlls/wbemprox/tests/query.c
+4
-7
No files found.
dlls/wbemprox/class.c
View file @
64a7f2ea
...
...
@@ -848,7 +848,7 @@ static HRESULT WINAPI class_object_GetMethod(
TRACE
(
"%p, %s, %08x, %p, %p
\n
"
,
iface
,
debugstr_w
(
wszName
),
lFlags
,
ppInSignature
,
ppOutSignature
);
hr
=
create_signature
(
co
->
name
,
wszName
,
PARAM_IN
,
ppInSignature
);
if
(
hr
!=
S_OK
)
return
hr
;
if
(
hr
!=
S_OK
||
!
ppOutSignature
)
return
hr
;
hr
=
create_signature
(
co
->
name
,
wszName
,
PARAM_OUT
,
ppOutSignature
);
if
(
hr
!=
S_OK
)
IWbemClassObject_Release
(
*
ppInSignature
);
...
...
dlls/wbemprox/tests/query.c
View file @
64a7f2ea
...
...
@@ -143,7 +143,7 @@ static void test_StdRegProv( IWbemServices *services )
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'M'
,
'i'
,
'c'
,
'r'
,
'o'
,
's'
,
'o'
,
'f'
,
't'
,
'\\'
,
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
'\\'
,
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'V'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
0
};
BSTR
class
=
SysAllocString
(
stdregprovW
),
method
;
IWbemClassObject
*
reg
,
*
sig_in
,
*
sig_out
,
*
in
,
*
out
;
IWbemClassObject
*
reg
,
*
sig_in
,
*
in
,
*
out
;
VARIANT
defkey
,
subkey
,
retval
,
names
,
types
,
value
,
valuename
;
CIMTYPE
type
;
HRESULT
hr
;
...
...
@@ -154,7 +154,7 @@ static void test_StdRegProv( IWbemServices *services )
win_skip
(
"StdRegProv not available
\n
"
);
return
;
}
hr
=
IWbemClassObject_GetMethod
(
reg
,
enumkeyW
,
0
,
&
sig_in
,
&
sig_out
);
hr
=
IWbemClassObject_GetMethod
(
reg
,
enumkeyW
,
0
,
&
sig_in
,
NULL
);
ok
(
hr
==
S_OK
,
"failed to get EnumKey method %08x
\n
"
,
hr
);
hr
=
IWbemClassObject_SpawnInstance
(
sig_in
,
0
,
&
in
);
...
...
@@ -196,9 +196,8 @@ static void test_StdRegProv( IWbemServices *services )
IWbemClassObject_Release
(
in
);
IWbemClassObject_Release
(
out
);
IWbemClassObject_Release
(
sig_in
);
IWbemClassObject_Release
(
sig_out
);
hr
=
IWbemClassObject_GetMethod
(
reg
,
enumvaluesW
,
0
,
&
sig_in
,
&
sig_out
);
hr
=
IWbemClassObject_GetMethod
(
reg
,
enumvaluesW
,
0
,
&
sig_in
,
NULL
);
ok
(
hr
==
S_OK
,
"failed to get EnumValues method %08x
\n
"
,
hr
);
hr
=
IWbemClassObject_SpawnInstance
(
sig_in
,
0
,
&
in
);
...
...
@@ -248,9 +247,8 @@ static void test_StdRegProv( IWbemServices *services )
IWbemClassObject_Release
(
in
);
IWbemClassObject_Release
(
out
);
IWbemClassObject_Release
(
sig_in
);
IWbemClassObject_Release
(
sig_out
);
hr
=
IWbemClassObject_GetMethod
(
reg
,
getstringvalueW
,
0
,
&
sig_in
,
&
sig_out
);
hr
=
IWbemClassObject_GetMethod
(
reg
,
getstringvalueW
,
0
,
&
sig_in
,
NULL
);
ok
(
hr
==
S_OK
,
"failed to get GetStringValue method %08x
\n
"
,
hr
);
hr
=
IWbemClassObject_SpawnInstance
(
sig_in
,
0
,
&
in
);
...
...
@@ -298,7 +296,6 @@ static void test_StdRegProv( IWbemServices *services )
IWbemClassObject_Release
(
in
);
IWbemClassObject_Release
(
out
);
IWbemClassObject_Release
(
sig_in
);
IWbemClassObject_Release
(
sig_out
);
IWbemClassObject_Release
(
reg
);
SysFreeString
(
class
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment