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
bb08e971
Commit
bb08e971
authored
Oct 07, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Fixed numeric escapes unescaping.
parent
80bd994b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
lex.c
dlls/jscript/lex.c
+12
-6
No files found.
dlls/jscript/lex.c
View file @
bb08e971
...
...
@@ -243,13 +243,11 @@ static BOOL unescape(WCHAR *str)
case
'r'
:
c
=
'\r'
;
break
;
case
'0'
:
break
;
case
'x'
:
i
=
hex_to_int
(
*++
p
);
if
(
i
==
-
1
)
return
FALSE
;
c
=
i
<<
16
;
c
=
i
<<
4
;
i
=
hex_to_int
(
*++
p
);
if
(
i
==
-
1
)
...
...
@@ -260,17 +258,17 @@ static BOOL unescape(WCHAR *str)
i
=
hex_to_int
(
*++
p
);
if
(
i
==
-
1
)
return
FALSE
;
c
=
i
<<
24
;
c
=
i
<<
12
;
i
=
hex_to_int
(
*++
p
);
if
(
i
==
-
1
)
return
FALSE
;
c
+=
i
<<
16
;
c
+=
i
<<
8
;
i
=
hex_to_int
(
*++
p
);
if
(
i
==
-
1
)
return
FALSE
;
c
+=
1
<<
8
;
c
+=
1
<<
4
;
i
=
hex_to_int
(
*++
p
);
if
(
i
==
-
1
)
...
...
@@ -278,6 +276,14 @@ static BOOL unescape(WCHAR *str)
c
+=
i
;
break
;
default:
if
(
isdigitW
(
*
p
))
{
c
=
*
p
++
-
'0'
;
while
(
isdigitW
(
*
p
))
c
=
c
*
10
+
(
*
p
++
-
'0'
);
*
pd
++
=
c
;
continue
;
}
c
=
*
p
;
}
...
...
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