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
603d0535
Commit
603d0535
authored
Sep 16, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Use default object value for objets in stack_pop_val.
parent
a8de7904
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
interp.c
dlls/vbscript/interp.c
+11
-2
lang.vbs
dlls/vbscript/tests/lang.vbs
+9
-0
No files found.
dlls/vbscript/interp.c
View file @
603d0535
...
...
@@ -199,8 +199,17 @@ static HRESULT stack_pop_val(exec_ctx_t *ctx, variant_val_t *v)
}
if
(
V_VT
(
var
)
==
VT_DISPATCH
)
{
FIXME
(
"got dispatch - get its default value
\n
"
);
return
E_NOTIMPL
;
DISPPARAMS
dp
=
{
0
};
HRESULT
hres
;
hres
=
disp_call
(
ctx
->
script
,
V_DISPATCH
(
var
),
DISPID_VALUE
,
&
dp
,
&
v
->
store
);
if
(
v
->
owned
)
IDispatch_Release
(
V_DISPATCH
(
var
));
if
(
FAILED
(
hres
))
return
hres
;
v
->
owned
=
TRUE
;
v
->
v
=
&
v
->
store
;
}
else
{
v
->
v
=
var
;
}
...
...
dlls/vbscript/tests/lang.vbs
View file @
603d0535
...
...
@@ -473,4 +473,13 @@ Call ok(obj.getPrivateProp = 3, "obj.getPrivateProp = " & obj.getPrivateProp)
Set
obj
.
gsProp
=
New
testclass
Call
ok
(
funcCalled
=
"gsProp set"
,
"funcCalled = "
&
funcCalled
)
x
=
obj
Call
ok
(
x
=
3
,
"(x = obj) = "
&
x
)
Call
ok
(
funcCalled
=
"GetDefVal"
,
"funcCalled = "
&
funcCalled
)
funcCalled
=
""
Call
ok
(
obj
=
3
,
"(x = obj) = "
&
obj
)
Call
ok
(
funcCalled
=
"GetDefVal"
,
"funcCalled = "
&
funcCalled
)
x
=
(
New
testclass
).
publicProp
reportSuccess
()
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