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
755eac8f
Commit
755eac8f
authored
Jun 09, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Properly handle NULL pvarResult in ParseScriptText.
parent
e22458c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
jscript.c
dlls/jscript/jscript.c
+2
-1
run.c
dlls/jscript/tests/run.c
+7
-0
No files found.
dlls/jscript/jscript.c
View file @
755eac8f
...
...
@@ -783,7 +783,8 @@ static HRESULT WINAPI JScriptParse_ParseScriptText(IActiveScriptParse *iface,
clear_ei
(
This
->
ctx
);
hres
=
exec_source
(
exec_ctx
,
code
,
&
code
->
global_code
,
TRUE
,
&
r
);
if
(
SUCCEEDED
(
hres
))
{
hres
=
jsval_to_variant
(
r
,
pvarResult
);
if
(
pvarResult
)
hres
=
jsval_to_variant
(
r
,
pvarResult
);
jsval_release
(
r
);
}
exec_release
(
exec_ctx
);
...
...
dlls/jscript/tests/run.c
View file @
755eac8f
...
...
@@ -1945,6 +1945,13 @@ static void test_script_exprs(void)
hres
=
parse_script_expr
(
"reportSuccess(); return true"
,
&
v
);
ok
(
hres
==
0x800a03fa
,
"parse_script_expr failed: %08x
\n
"
,
hres
);
SET_EXPECT
(
global_success_d
);
SET_EXPECT
(
global_success_i
);
hres
=
parse_script_expr
(
"reportSuccess(); true"
,
NULL
);
ok
(
hres
==
S_OK
,
"parse_script_expr failed: %08x
\n
"
,
hres
);
CHECK_CALLED
(
global_success_d
);
CHECK_CALLED
(
global_success_i
);
testing_expr
=
FALSE
;
}
...
...
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