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
708c83e2
Commit
708c83e2
authored
Jan 02, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Make 0 an invalid code offset.
parent
11453b24
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
compile.c
dlls/jscript/compile.c
+0
-0
engine.c
dlls/jscript/engine.c
+1
-1
parser.y
dlls/jscript/parser.y
+2
-2
No files found.
dlls/jscript/compile.c
View file @
708c83e2
This diff is collapsed.
Click to expand it.
dlls/jscript/engine.c
View file @
708c83e2
...
@@ -2614,7 +2614,7 @@ HRESULT exec_source(exec_ctx_t *ctx, parser_ctx_t *parser, source_elements_t *so
...
@@ -2614,7 +2614,7 @@ HRESULT exec_source(exec_ctx_t *ctx, parser_ctx_t *parser, source_elements_t *so
ctx
->
parser
=
parser
;
ctx
->
parser
=
parser
;
if
(
source
->
statement
)
{
if
(
source
->
statement
)
{
if
(
source
->
instr_off
==
-
1
)
{
if
(
!
source
->
instr_off
)
{
hres
=
compile_subscript_stat
(
ctx
->
parser
,
source
->
statement
,
from_eval
,
&
source
->
instr_off
);
hres
=
compile_subscript_stat
(
ctx
->
parser
,
source
->
statement
,
from_eval
,
&
source
->
instr_off
);
if
(
FAILED
(
hres
)
&&
is_jscript_error
(
hres
))
if
(
FAILED
(
hres
)
&&
is_jscript_error
(
hres
))
hres
=
throw_syntax_error
(
script
,
ei
,
hres
,
NULL
);
hres
=
throw_syntax_error
(
script
,
ei
,
hres
,
NULL
);
...
...
dlls/jscript/parser.y
View file @
708c83e2
...
@@ -1342,7 +1342,7 @@ static void *new_expression(parser_ctx_t *ctx, expression_type_t type, size_t si
...
@@ -1342,7 +1342,7 @@ static void *new_expression(parser_ctx_t *ctx, expression_type_t type, size_t si
expression_t *ret = parser_alloc(ctx, size ? size : sizeof(*ret));
expression_t *ret = parser_alloc(ctx, size ? size : sizeof(*ret));
ret->type = type;
ret->type = type;
ret->instr_off =
-1
;
ret->instr_off =
0
;
return ret;
return ret;
}
}
...
@@ -1470,7 +1470,7 @@ static source_elements_t *new_source_elements(parser_ctx_t *ctx)
...
@@ -1470,7 +1470,7 @@ static source_elements_t *new_source_elements(parser_ctx_t *ctx)
source_elements_t *ret = parser_alloc(ctx, sizeof(source_elements_t));
source_elements_t *ret = parser_alloc(ctx, sizeof(source_elements_t));
memset(ret, 0, sizeof(*ret));
memset(ret, 0, sizeof(*ret));
ret->instr_off =
-1
;
ret->instr_off =
0
;
return ret;
return ret;
}
}
...
...
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