Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
fc8756ac
Commit
fc8756ac
authored
Dec 30, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Added support for VARIANTREF arguments in multiple argument functions.
parent
5dc8bedb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
6 deletions
+30
-6
vbdisp.c
dlls/vbscript/vbdisp.c
+30
-6
No files found.
dlls/vbscript/vbdisp.c
View file @
fc8756ac
...
...
@@ -16,6 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <assert.h>
#include "vbscript.h"
#include "wine/debug.h"
...
...
@@ -133,7 +135,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
;
VARIANT
*
args
,
arg_buf
[
8
];
unsigned
argn
;
switch
(
flags
)
{
case
DISPATCH_PROPERTYGET
:
...
...
@@ -163,15 +166,36 @@ static HRESULT invoke_builtin(vbdisp_t *This, const builtin_prop_t *prop, WORD f
return
E_NOTIMPL
;
}
if
(
arg_cnt
(
dp
)
<
prop
->
min_args
||
arg_cnt
(
dp
)
>
(
prop
->
max_args
?
prop
->
max_args
:
prop
->
min_args
))
{
argn
=
arg_cnt
(
dp
);
if
(
argn
<
prop
->
min_args
||
argn
>
(
prop
->
max_args
?
prop
->
max_args
:
prop
->
min_args
))
{
FIXME
(
"invalid number of arguments
\n
"
);
return
E_FAIL
;
}
if
(
arg_cnt
(
dp
)
==
1
&&
V_VT
(
dp
->
rgvarg
)
==
(
VT_BYREF
|
VT_VARIANT
))
args
=
V_VARIANTREF
(
dp
->
rgvarg
);
else
args
=
dp
->
rgvarg
;
args
=
dp
->
rgvarg
;
if
(
argn
==
1
)
{
if
(
V_VT
(
dp
->
rgvarg
)
==
(
VT_BYREF
|
VT_VARIANT
))
args
=
V_VARIANTREF
(
dp
->
rgvarg
);
}
else
{
unsigned
i
;
assert
(
argn
<
sizeof
(
arg_buf
)
/
sizeof
(
*
arg_buf
));
for
(
i
=
0
;
i
<
argn
;
i
++
)
{
if
(
V_VT
(
dp
->
rgvarg
+
i
)
==
(
VT_BYREF
|
VT_VARIANT
))
{
for
(
i
=
0
;
i
<
argn
;
i
++
)
{
if
(
V_VT
(
dp
->
rgvarg
+
i
)
==
(
VT_BYREF
|
VT_VARIANT
))
arg_buf
[
i
]
=
*
V_VARIANTREF
(
dp
->
rgvarg
+
i
);
else
arg_buf
[
i
]
=
dp
->
rgvarg
[
i
];
}
args
=
arg_buf
;
break
;
}
}
}
return
prop
->
proc
(
This
,
args
,
dp
->
cArgs
,
res
);
}
...
...
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