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
7917b67a
Commit
7917b67a
authored
Nov 13, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 13, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Added support for setting array elements.
parent
79c55e12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
5 deletions
+33
-5
interp.c
dlls/vbscript/interp.c
+33
-5
No files found.
dlls/vbscript/interp.c
View file @
7917b67a
...
...
@@ -698,15 +698,43 @@ static HRESULT assign_ident(exec_ctx_t *ctx, BSTR name, DISPPARAMS *dp)
case
REF_VAR
:
{
VARIANT
*
v
=
ref
.
u
.
v
;
if
(
V_VT
(
v
)
==
(
VT_VARIANT
|
VT_BYREF
))
v
=
V_VARIANTREF
(
v
);
if
(
arg_cnt
(
dp
))
{
FIXME
(
"arg_cnt %d not supported
\n
"
,
arg_cnt
(
dp
));
SAFEARRAY
*
array
;
if
(
!
(
V_VT
(
v
)
&
VT_ARRAY
))
{
FIXME
(
"array assign on type %d
\n
"
,
V_VT
(
v
));
return
E_FAIL
;
}
switch
(
V_VT
(
v
))
{
case
VT_ARRAY
|
VT_BYREF
|
VT_VARIANT
:
array
=
*
V_ARRAYREF
(
v
);
break
;
case
VT_ARRAY
|
VT_VARIANT
:
array
=
V_ARRAY
(
v
);
break
;
default:
FIXME
(
"Unsupported array type %x
\v
"
,
V_VT
(
v
));
return
E_NOTIMPL
;
}
if
(
!
array
)
{
FIXME
(
"null array
\n
"
);
return
E_FAIL
;
}
hres
=
array_access
(
ctx
,
array
,
dp
,
&
v
);
if
(
FAILED
(
hres
))
return
hres
;
}
else
if
(
V_VT
(
v
)
==
(
VT_ARRAY
|
VT_BYREF
|
VT_VARIANT
))
{
FIXME
(
"non-array assign
\n
"
);
return
E_NOTIMPL
;
}
if
(
V_VT
(
v
)
==
(
VT_VARIANT
|
VT_BYREF
))
v
=
V_VARIANTREF
(
v
);
hres
=
VariantCopy
(
v
,
dp
->
rgvarg
);
hres
=
VariantCopyInd
(
v
,
dp
->
rgvarg
);
break
;
}
case
REF_DISP
:
...
...
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