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
bd42594d
Commit
bd42594d
authored
Mar 03, 2015
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 03, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Leave converting object to trivial values up to calee.
parent
62bc8aeb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
10 deletions
+25
-10
interp.c
dlls/vbscript/interp.c
+25
-10
No files found.
dlls/vbscript/interp.c
View file @
bd42594d
...
...
@@ -697,6 +697,29 @@ static HRESULT interp_mcallv(exec_ctx_t *ctx)
return
do_mcall
(
ctx
,
NULL
);
}
static
HRESULT
assign_value
(
exec_ctx_t
*
ctx
,
VARIANT
*
dst
,
VARIANT
*
src
,
WORD
flags
)
{
HRESULT
hres
;
hres
=
VariantCopyInd
(
dst
,
src
);
if
(
FAILED
(
hres
))
return
hres
;
if
(
V_VT
(
dst
)
==
VT_DISPATCH
&&
!
(
flags
&
DISPATCH_PROPERTYPUTREF
))
{
DISPPARAMS
dp
=
{
NULL
};
VARIANT
value
;
hres
=
disp_call
(
ctx
->
script
,
V_DISPATCH
(
dst
),
DISPID_VALUE
,
&
dp
,
&
value
);
IDispatch_Release
(
V_DISPATCH
(
dst
));
if
(
FAILED
(
hres
))
return
hres
;
*
dst
=
value
;
}
return
S_OK
;
}
static
HRESULT
assign_ident
(
exec_ctx_t
*
ctx
,
BSTR
name
,
WORD
flags
,
DISPPARAMS
*
dp
)
{
ref_t
ref
;
...
...
@@ -746,7 +769,7 @@ static HRESULT assign_ident(exec_ctx_t *ctx, BSTR name, WORD flags, DISPPARAMS *
return
E_NOTIMPL
;
}
hres
=
VariantCopyInd
(
v
,
dp
->
rgvarg
);
hres
=
assign_value
(
ctx
,
v
,
dp
->
rgvarg
,
flags
);
break
;
}
case
REF_DISP
:
...
...
@@ -776,7 +799,7 @@ static HRESULT assign_ident(exec_ctx_t *ctx, BSTR name, WORD flags, DISPPARAMS *
TRACE
(
"creating variable %s
\n
"
,
debugstr_w
(
name
));
hres
=
add_dynamic_var
(
ctx
,
name
,
FALSE
,
&
new_var
);
if
(
SUCCEEDED
(
hres
))
hres
=
VariantCopyInd
(
new_var
,
dp
->
rgvarg
);
hres
=
assign_value
(
ctx
,
new_var
,
dp
->
rgvarg
,
flags
);
}
}
...
...
@@ -792,10 +815,6 @@ static HRESULT interp_assign_ident(exec_ctx_t *ctx)
TRACE
(
"%s
\n
"
,
debugstr_w
(
arg
));
hres
=
stack_assume_val
(
ctx
,
arg_cnt
);
if
(
FAILED
(
hres
))
return
hres
;
vbstack_to_dp
(
ctx
,
arg_cnt
,
TRUE
,
&
dp
);
hres
=
assign_ident
(
ctx
,
arg
,
DISPATCH_PROPERTYPUT
,
&
dp
);
if
(
FAILED
(
hres
))
...
...
@@ -852,10 +871,6 @@ static HRESULT interp_assign_member(exec_ctx_t *ctx)
return
E_FAIL
;
}
hres
=
stack_assume_val
(
ctx
,
arg_cnt
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
disp_get_id
(
obj
,
identifier
,
VBDISP_LET
,
FALSE
,
&
id
);
if
(
SUCCEEDED
(
hres
))
{
vbstack_to_dp
(
ctx
,
arg_cnt
,
TRUE
,
&
dp
);
...
...
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