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
f683832a
Commit
f683832a
authored
Sep 15, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Added interp_set_ident implementation.
parent
b3a6217e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
interp.c
dlls/vbscript/interp.c
+13
-2
lang.vbs
dlls/vbscript/tests/lang.vbs
+3
-0
No files found.
dlls/vbscript/interp.c
View file @
f683832a
...
...
@@ -388,8 +388,19 @@ static HRESULT interp_assign_ident(exec_ctx_t *ctx)
static
HRESULT
interp_set_ident
(
exec_ctx_t
*
ctx
)
{
const
BSTR
arg
=
ctx
->
instr
->
arg1
.
bstr
;
FIXME
(
"%s
\n
"
,
debugstr_w
(
arg
));
return
E_NOTIMPL
;
IDispatch
*
disp
;
VARIANT
v
;
HRESULT
hres
;
TRACE
(
"%s
\n
"
,
debugstr_w
(
arg
));
hres
=
stack_pop_disp
(
ctx
,
&
disp
);
if
(
FAILED
(
hres
))
return
hres
;
V_VT
(
&
v
)
=
VT_DISPATCH
;
V_DISPATCH
(
&
v
)
=
disp
;
return
assign_ident
(
ctx
,
ctx
->
instr
->
arg1
.
bstr
,
&
v
,
TRUE
);
}
static
HRESULT
interp_assign_member
(
exec_ctx_t
*
ctx
)
...
...
dlls/vbscript/tests/lang.vbs
View file @
f683832a
...
...
@@ -355,6 +355,9 @@ x = false
ok
SetVal
(
x
,
true
),
"SetVal returned false?"
Call
ok
(
x
,
"x is not set to true by SetVal?"
)
set
x
=
testObj
Call
ok
(
getVT
(
x
)
=
"VT_DISPATCH*"
,
"getVT(x=testObj) = "
&
getVT
(
x
))
Class
EmptyClass
End
Class
...
...
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