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
1d61b458
Commit
1d61b458
authored
Feb 15, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Feb 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Don't use jsstr_t in js_NewRegExp.
parent
89711e35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
regexp.c
dlls/jscript/regexp.c
+7
-6
No files found.
dlls/jscript/regexp.c
View file @
1d61b458
...
...
@@ -3218,7 +3218,7 @@ js_DestroyRegExp(JSRegExp *re)
}
static
JSRegExp
*
js_NewRegExp
(
script_ctx_t
*
cx
,
jsstr_t
*
str
,
UINT
flags
,
BOOL
flat
)
js_NewRegExp
(
script_ctx_t
*
cx
,
const
WCHAR
*
str
,
DWORD
str_len
,
UINT
flags
,
BOOL
flat
)
{
JSRegExp
*
re
;
heap_pool_t
*
mark
;
...
...
@@ -3230,10 +3230,10 @@ js_NewRegExp(script_ctx_t *cx, jsstr_t *str, UINT flags, BOOL flat)
re
=
NULL
;
mark
=
heap_pool_mark
(
&
cx
->
tmp_heap
);
len
=
jsstr_length
(
str
)
;
len
=
str_len
;
state
.
context
=
cx
;
state
.
cp
=
str
->
str
;
state
.
cp
=
str
;
if
(
!
state
.
cp
)
goto
out
;
state
.
cpbegin
=
state
.
cp
;
...
...
@@ -3303,8 +3303,8 @@ js_NewRegExp(script_ctx_t *cx, jsstr_t *str, UINT flags, BOOL flat)
re
->
flags
=
flags
;
re
->
parenCount
=
state
.
parenCount
;
re
->
source
=
str
->
str
;
re
->
source_len
=
jsstr_length
(
str
)
;
re
->
source
=
str
;
re
->
source_len
=
str_len
;
out:
heap_pool_clear
(
mark
);
...
...
@@ -3865,7 +3865,8 @@ HRESULT create_regexp(script_ctx_t *ctx, jsstr_t *src, DWORD flags, jsdisp_t **r
regexp
->
str
=
jsstr_addref
(
src
);
regexp
->
last_index_val
=
jsval_number
(
0
);
regexp
->
jsregexp
=
js_NewRegExp
(
ctx
,
regexp
->
str
,
flags
,
FALSE
);
regexp
->
jsregexp
=
js_NewRegExp
(
ctx
,
regexp
->
str
->
str
,
jsstr_length
(
regexp
->
str
),
flags
,
FALSE
);
if
(
!
regexp
->
jsregexp
)
{
WARN
(
"js_NewRegExp failed
\n
"
);
jsdisp_release
(
&
regexp
->
dispex
);
...
...
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