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
1c936039
Commit
1c936039
authored
Oct 11, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 11, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Pass arguments to 1-arg functions directly if they are VT_VARIANT|VT_BYREF.
parent
a7b5d866
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
vbdisp.c
dlls/vbscript/vbdisp.c
+8
-1
No files found.
dlls/vbscript/vbdisp.c
View file @
1c936039
...
...
@@ -133,6 +133,8 @@ static HRESULT invoke_variant_prop(vbdisp_t *This, VARIANT *v, WORD flags, DISPP
static
HRESULT
invoke_builtin
(
vbdisp_t
*
This
,
const
builtin_prop_t
*
prop
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
res
)
{
VARIANT
*
args
;
switch
(
flags
)
{
case
DISPATCH_PROPERTYGET
:
if
(
!
(
prop
->
flags
&
(
BP_GET
|
BP_GETPUT
)))
{
...
...
@@ -166,7 +168,12 @@ static HRESULT invoke_builtin(vbdisp_t *This, const builtin_prop_t *prop, WORD f
return
E_FAIL
;
}
return
prop
->
proc
(
This
,
dp
->
rgvarg
,
dp
->
cArgs
,
res
);
if
(
arg_cnt
(
dp
)
==
1
&&
V_VT
(
dp
->
rgvarg
)
==
(
VT_BYREF
|
VT_VARIANT
))
args
=
V_VARIANTREF
(
dp
->
rgvarg
);
else
args
=
dp
->
rgvarg
;
return
prop
->
proc
(
This
,
args
,
dp
->
cArgs
,
res
);
}
static
BOOL
run_terminator
(
vbdisp_t
*
This
)
...
...
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