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
5086bb2c
Commit
5086bb2c
authored
Dec 15, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Get rid of no longer needed EXPR_NEWREF flag.
parent
63366f8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
engine.c
dlls/jscript/engine.c
+3
-4
No files found.
dlls/jscript/engine.c
View file @
5086bb2c
...
...
@@ -30,7 +30,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
jscript
);
#define EXPR_NOVAL 0x0001
#define EXPR_NEWREF 0x0002
static
const
WCHAR
booleanW
[]
=
{
'b'
,
'o'
,
'o'
,
'l'
,
'e'
,
'a'
,
'n'
,
0
};
static
const
WCHAR
functionW
[]
=
{
'f'
,
'u'
,
'n'
,
'c'
,
't'
,
'i'
,
'o'
,
'n'
,
0
};
...
...
@@ -715,7 +714,7 @@ static HRESULT identifier_eval(script_ctx_t *ctx, BSTR identifier, DWORD flags,
if
(
lookup_global_members
(
ctx
,
identifier
,
ret
))
return
S_OK
;
if
(
flags
&
EXPR_NEWREF
)
{
if
(
flags
&
fdexNameEnsure
)
{
hres
=
jsdisp_get_id
(
ctx
->
global
,
identifier
,
fdexNameEnsure
,
&
id
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
@@ -1805,7 +1804,7 @@ static HRESULT identifier_expression_eval(script_ctx_t *ctx, expression_t *_expr
if
(
!
identifier
)
return
E_OUTOFMEMORY
;
hres
=
identifier_eval
(
ctx
,
identifier
,
EXPR_NEWREF
,
ei
,
ret
);
hres
=
identifier_eval
(
ctx
,
identifier
,
fdexNameEnsure
,
ei
,
ret
);
SysFreeString
(
identifier
);
return
hres
;
...
...
@@ -1843,7 +1842,7 @@ static HRESULT interp_identid(exec_ctx_t *ctx)
TRACE
(
"%s %x
\n
"
,
debugstr_w
(
arg
),
flags
);
hres
=
identifier_eval
(
ctx
->
parser
->
script
,
arg
,
(
flags
&
fdexNameEnsure
)
?
EXPR_NEWREF
:
0
,
&
ctx
->
ei
,
&
exprval
);
hres
=
identifier_eval
(
ctx
->
parser
->
script
,
arg
,
flags
,
&
ctx
->
ei
,
&
exprval
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
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