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
b4d30e92
Commit
b4d30e92
authored
Apr 30, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 30, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Added InvokeEx(DISPATCH_PROPERTYGET) implementation.
parent
0f50cb32
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
1 deletion
+44
-1
run.c
dlls/vbscript/tests/run.c
+35
-1
vbdisp.c
dlls/vbscript/vbdisp.c
+9
-0
No files found.
dlls/vbscript/tests/run.c
View file @
b4d30e92
...
...
@@ -244,7 +244,7 @@ static IServiceProvider caller_sp = { &ServiceProviderVtbl };
static
void
test_disp
(
IDispatch
*
disp
)
{
DISPID
id
,
public_prop_id
,
public_prop2_id
,
public_func_id
,
public_sub_id
,
defvalget_id
;
DISPID
id
,
public_prop_id
,
public_prop2_id
,
public_func_id
,
public_sub_id
,
defvalget_id
,
gs_getter_id
;
DISPID
named_args
[
5
]
=
{
DISPID_PROPERTYPUT
};
VARIANT
v
,
args
[
5
];
DISPPARAMS
dp
=
{
args
,
named_args
};
...
...
@@ -443,6 +443,40 @@ static void test_disp(IDispatch *disp)
ok
(
hres
==
S_OK
,
"GetDispID(publicProp) failed: %08x
\n
"
,
hres
);
ok
(
id
==
public_prop_id
,
"id = %d, expected %d
\n
"
,
id
,
public_prop_id
);
str
=
a2bstr
(
"gsGetProp"
);
hres
=
IDispatchEx_GetDispID
(
dispex
,
str
,
fdexNameCaseInsensitive
,
&
gs_getter_id
);
SysFreeString
(
str
);
ok
(
hres
==
S_OK
,
"GetDispID(publicFunction) failed: %08x
\n
"
,
hres
);
ok
(
gs_getter_id
!=
-
1
,
"gs_getter_id = -1
\n
"
);
V_VT
(
args
)
=
VT_BOOL
;
V_BOOL
(
args
)
=
VARIANT_TRUE
;
dp
.
cNamedArgs
=
0
;
dp
.
cArgs
=
1
;
V_VT
(
&
v
)
=
VT_I8
;
hres
=
IDispatchEx_InvokeEx
(
dispex
,
gs_getter_id
,
0
,
DISPATCH_PROPERTYGET
,
&
dp
,
&
v
,
&
ei
,
NULL
);
ok
(
hres
==
S_OK
,
"InvokeEx failed: %08x
\n
"
,
hres
);
ok
(
V_VT
(
&
v
)
==
VT_BOOL
&&
V_BOOL
(
&
v
),
"V_VT(v) = %d
\n
"
,
V_VT
(
&
v
));
hres
=
IDispatchEx_InvokeEx
(
dispex
,
gs_getter_id
,
0
,
DISPATCH_PROPERTYGET
,
&
dp
,
NULL
,
&
ei
,
NULL
);
ok
(
hres
==
S_OK
,
"InvokeEx failed: %08x
\n
"
,
hres
);
V_VT
(
args
)
=
VT_BOOL
;
V_BOOL
(
args
)
=
VARIANT_FALSE
;
dp
.
cArgs
=
1
;
V_VT
(
&
v
)
=
VT_I8
;
hres
=
IDispatchEx_InvokeEx
(
dispex
,
gs_getter_id
,
0
,
DISPATCH_PROPERTYGET
|
DISPATCH_METHOD
,
&
dp
,
&
v
,
&
ei
,
NULL
);
ok
(
hres
==
S_OK
,
"InvokeEx failed: %08x
\n
"
,
hres
);
ok
(
V_VT
(
&
v
)
==
VT_BOOL
&&
!
V_BOOL
(
&
v
),
"V_VT(v) = %d
\n
"
,
V_VT
(
&
v
));
V_VT
(
args
)
=
VT_BOOL
;
V_BOOL
(
args
)
=
VARIANT_TRUE
;
V_VT
(
&
v
)
=
VT_I8
;
dp
.
cArgs
=
1
;
hres
=
IDispatchEx_InvokeEx
(
dispex
,
gs_getter_id
,
0
,
DISPATCH_METHOD
,
&
dp
,
&
v
,
&
ei
,
NULL
);
ok
(
hres
==
S_OK
,
"InvokeEx failed: %08x
\n
"
,
hres
);
ok
(
V_VT
(
&
v
)
==
VT_BOOL
&&
V_BOOL
(
&
v
),
"V_VT(v) = %d
\n
"
,
V_VT
(
&
v
));
IDispatchEx_Release
(
dispex
);
}
...
...
dlls/vbscript/vbdisp.c
View file @
b4d30e92
...
...
@@ -391,6 +391,15 @@ static HRESULT WINAPI DispatchEx_InvokeEx(IDispatchEx *iface, DISPID id, LCID lc
function_t
*
func
;
switch
(
wFlags
)
{
case
DISPATCH_PROPERTYGET
:
func
=
This
->
desc
->
funcs
[
id
].
entries
[
VBDISP_CALLGET
];
if
(
!
func
||
(
func
->
type
!=
FUNC_PROPGET
&&
func
->
type
!=
FUNC_DEFGET
))
{
WARN
(
"no getter
\n
"
);
return
DISP_E_MEMBERNOTFOUND
;
}
return
exec_script
(
This
->
desc
->
ctx
,
func
,
This
,
pdp
,
pvarRes
);
case
DISPATCH_METHOD
:
case
DISPATCH_METHOD
|
DISPATCH_PROPERTYGET
:
func
=
This
->
desc
->
funcs
[
id
].
entries
[
VBDISP_CALLGET
];
...
...
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