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
0c5107af
Commit
0c5107af
authored
Jun 22, 2023
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Jun 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemdisp: Support DISPATCH_PROPERTYGET in Object Invoke.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=55053
parent
02081ed6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
locator.c
dlls/wbemdisp/locator.c
+2
-1
wbemdisp.c
dlls/wbemdisp/tests/wbemdisp.c
+15
-0
No files found.
dlls/wbemdisp/locator.c
View file @
0c5107af
...
...
@@ -1286,7 +1286,8 @@ static HRESULT WINAPI object_Invoke(
if
(
!
(
name
=
get_member_name
(
object
,
member
,
&
type
)))
return
DISP_E_MEMBERNOTFOUND
;
if
(
flags
==
(
DISPATCH_METHOD
|
DISPATCH_PROPERTYGET
))
if
(
flags
==
(
DISPATCH_METHOD
|
DISPATCH_PROPERTYGET
)
||
flags
==
DISPATCH_PROPERTYGET
)
{
memset
(
params
,
0
,
sizeof
(
*
params
)
);
return
IWbemClassObject_Get
(
object
->
object
,
name
,
0
,
result
,
NULL
,
NULL
);
...
...
dlls/wbemdisp/tests/wbemdisp.c
View file @
0c5107af
...
...
@@ -223,6 +223,21 @@ static void test_ParseDisplayName(void)
ok
(
V_VT
(
&
res
)
==
VT_BSTR
,
"got %u
\n
"
,
V_VT
(
&
res
)
);
ok
(
V_BSTR
(
&
res
)
!=
(
BSTR
)
0xdeadbeef
,
"got %u
\n
"
,
V_VT
(
&
res
)
);
VariantClear
(
&
res
);
V_VT
(
&
res
)
=
VT_ERROR
;
V_BSTR
(
&
res
)
=
(
BSTR
)
0xdeadbeef
;
memset
(
&
params
,
0
,
sizeof
(
params
)
);
hr
=
IDispatch_Invoke
(
dispatch
,
dispid
,
&
IID_NULL
,
LOCALE_USER_DEFAULT
,
DISPATCH_PROPERTYGET
,
&
params
,
&
res
,
NULL
,
NULL
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
ok
(
params
.
rgvarg
==
NULL
,
"got %p
\n
"
,
params
.
rgvarg
);
ok
(
params
.
rgdispidNamedArgs
==
NULL
,
"got %p
\n
"
,
params
.
rgdispidNamedArgs
);
ok
(
!
params
.
cArgs
,
"got %u
\n
"
,
params
.
cArgs
);
ok
(
!
params
.
cNamedArgs
,
"got %u
\n
"
,
params
.
cNamedArgs
);
ok
(
V_VT
(
&
res
)
==
VT_BSTR
,
"got %u
\n
"
,
V_VT
(
&
res
)
);
ok
(
V_BSTR
(
&
res
)
!=
(
BSTR
)
0xdeadbeef
,
"got %u
\n
"
,
V_VT
(
&
res
)
);
VariantClear
(
&
res
);
VariantClear
(
&
var
);
fetched
=
0xdeadbeef
;
...
...
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