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
3fc0c731
Commit
3fc0c731
authored
Oct 13, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 14, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Fixed increasing buffer size logic in text range implementation.
parent
d05e328d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
txtrange.c
dlls/mshtml/txtrange.c
+2
-2
No files found.
dlls/mshtml/txtrange.c
View file @
3fc0c731
...
@@ -193,7 +193,7 @@ static inline void wstrbuf_finish(wstrbuf_t *buf)
...
@@ -193,7 +193,7 @@ static inline void wstrbuf_finish(wstrbuf_t *buf)
static
void
wstrbuf_append_len
(
wstrbuf_t
*
buf
,
LPCWSTR
str
,
int
len
)
static
void
wstrbuf_append_len
(
wstrbuf_t
*
buf
,
LPCWSTR
str
,
int
len
)
{
{
if
(
buf
->
len
+
len
>=
buf
->
size
)
{
if
(
buf
->
len
+
len
>=
buf
->
size
)
{
buf
->
size
=
2
*
buf
->
len
+
len
;
buf
->
size
=
2
*
buf
->
size
+
len
;
buf
->
buf
=
heap_realloc
(
buf
->
buf
,
buf
->
size
*
sizeof
(
WCHAR
));
buf
->
buf
=
heap_realloc
(
buf
->
buf
,
buf
->
size
*
sizeof
(
WCHAR
));
}
}
...
@@ -210,7 +210,7 @@ static void wstrbuf_append_nodetxt(wstrbuf_t *buf, LPCWSTR str, int len)
...
@@ -210,7 +210,7 @@ static void wstrbuf_append_nodetxt(wstrbuf_t *buf, LPCWSTR str, int len)
TRACE
(
"%s
\n
"
,
debugstr_wn
(
str
,
len
));
TRACE
(
"%s
\n
"
,
debugstr_wn
(
str
,
len
));
if
(
buf
->
len
+
len
>=
buf
->
size
)
{
if
(
buf
->
len
+
len
>=
buf
->
size
)
{
buf
->
size
=
2
*
buf
->
len
+
len
;
buf
->
size
=
2
*
buf
->
size
+
len
;
buf
->
buf
=
heap_realloc
(
buf
->
buf
,
buf
->
size
*
sizeof
(
WCHAR
));
buf
->
buf
=
heap_realloc
(
buf
->
buf
,
buf
->
size
*
sizeof
(
WCHAR
));
}
}
...
...
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