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
3fbabbfd
Commit
3fbabbfd
authored
Sep 13, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
Sep 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp90: Don't overwrite string length in basic_string::_Grow.
parent
e931ebc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
string.c
dlls/msvcp90/string.c
+4
-4
No files found.
dlls/msvcp90/string.c
View file @
3fbabbfd
...
...
@@ -589,7 +589,7 @@ MSVCP_bool __thiscall basic_string_char_grow(
basic_string_char
*
this
,
MSVCP_size_t
new_size
,
MSVCP_bool
trim
)
{
if
(
this
->
res
<
new_size
)
{
MSVCP_size_t
new_res
=
new_size
;
MSVCP_size_t
new_res
=
new_size
,
len
=
this
->
size
;
char
*
ptr
;
new_res
|=
0xf
;
...
...
@@ -613,7 +613,7 @@ MSVCP_bool __thiscall basic_string_char_grow(
basic_string_char_tidy
(
this
,
TRUE
,
0
);
this
->
data
.
ptr
=
ptr
;
this
->
res
=
new_size
;
basic_string_char_eos
(
this
,
this
->
size
);
basic_string_char_eos
(
this
,
len
);
}
else
if
(
trim
&&
new_size
<
BUF_SIZE_CHAR
)
basic_string_char_tidy
(
this
,
TRUE
,
new_size
<
this
->
size
?
new_size
:
this
->
size
);
...
...
@@ -1609,7 +1609,7 @@ MSVCP_bool __thiscall basic_string_wchar_grow(
basic_string_wchar
*
this
,
MSVCP_size_t
new_size
,
MSVCP_bool
trim
)
{
if
(
this
->
res
<
new_size
)
{
MSVCP_size_t
new_res
=
new_size
;
MSVCP_size_t
new_res
=
new_size
,
len
=
this
->
size
;
wchar_t
*
ptr
;
new_res
|=
0xf
;
...
...
@@ -1633,7 +1633,7 @@ MSVCP_bool __thiscall basic_string_wchar_grow(
basic_string_wchar_tidy
(
this
,
TRUE
,
0
);
this
->
data
.
ptr
=
ptr
;
this
->
res
=
new_size
;
basic_string_wchar_eos
(
this
,
this
->
size
);
basic_string_wchar_eos
(
this
,
len
);
}
else
if
(
trim
&&
new_size
<
BUF_SIZE_WCHAR
)
basic_string_wchar_tidy
(
this
,
TRUE
,
new_size
<
this
->
size
?
new_size
:
this
->
size
);
...
...
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