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
24f4c09b
Commit
24f4c09b
authored
Sep 10, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 10, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Added support for DISPATCH_PROPERTYGET in invoke_variant_prop.
parent
73d00515
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
run.c
dlls/vbscript/tests/run.c
+6
-0
vbdisp.c
dlls/vbscript/vbdisp.c
+1
-0
No files found.
dlls/vbscript/tests/run.c
View file @
24f4c09b
...
...
@@ -300,6 +300,12 @@ static void test_disp(IDispatch *disp)
ok
(
V_VT
(
&
v
)
==
VT_BOOL
,
"V_VT(v) = %d
\n
"
,
V_VT
(
&
v
));
ok
(
V_BOOL
(
&
v
),
"V_BOOL(v) = %x
\n
"
,
V_BOOL
(
&
v
));
dp
.
cArgs
=
dp
.
cNamedArgs
=
0
;
hres
=
IDispatchEx_InvokeEx
(
dispex
,
public_prop_id
,
0
,
DISPATCH_PROPERTYGET
,
&
dp
,
&
v
,
&
ei
,
NULL
);
ok
(
hres
==
S_OK
,
"InvokeEx failed: %08x
\n
"
,
hres
);
ok
(
V_VT
(
&
v
)
==
VT_BOOL
,
"V_VT(v) = %d
\n
"
,
V_VT
(
&
v
));
ok
(
V_BOOL
(
&
v
),
"V_BOOL(v) = %x
\n
"
,
V_BOOL
(
&
v
));
dp
.
cArgs
=
1
;
hres
=
IDispatchEx_InvokeEx
(
dispex
,
public_prop_id
,
0
,
DISPATCH_PROPERTYGET
|
DISPATCH_METHOD
,
&
dp
,
&
v
,
&
ei
,
NULL
);
ok
(
hres
==
DISP_E_MEMBERNOTFOUND
,
"InvokeEx failed: %08x, expected DISP_E_MEMBERNOTFOUND
\n
"
,
hres
);
...
...
dlls/vbscript/vbdisp.c
View file @
24f4c09b
...
...
@@ -103,6 +103,7 @@ static HRESULT invoke_variant_prop(VARIANT *v, WORD flags, DISPPARAMS *dp, VARIA
switch
(
flags
)
{
case
DISPATCH_PROPERTYGET
|
DISPATCH_METHOD
:
case
DISPATCH_PROPERTYGET
:
if
(
dp
->
cArgs
)
{
WARN
(
"called with arguments
\n
"
);
return
DISP_E_MEMBERNOTFOUND
;
/* That's what tests show */
...
...
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