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
9d6c003c
Commit
9d6c003c
authored
Oct 22, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 22, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp60: Copy correct number of characters in basic_string::_Grow.
parent
afc4284d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
string.c
dlls/msvcp60/string.c
+10
-4
No files found.
dlls/msvcp60/string.c
View file @
9d6c003c
...
...
@@ -203,13 +203,16 @@ MSVCP_bool __thiscall basic_string_char__Grow(basic_string_char *this, MSVCP_siz
return
FALSE
;
}
if
(
len
>
new_res
)
len
=
new_res
;
*
ptr
=
0
;
if
(
this
->
ptr
)
char_traits_char__Copy_s
(
ptr
+
1
,
new_size
,
this
->
ptr
,
this
->
size
);
char_traits_char__Copy_s
(
ptr
+
1
,
new_size
,
this
->
ptr
,
len
);
basic_string_char__Tidy
(
this
,
TRUE
);
this
->
ptr
=
ptr
+
1
;
this
->
res
=
new_res
;
basic_string_char__Eos
(
this
,
len
>
new_res
?
new_res
:
len
);
basic_string_char__Eos
(
this
,
len
);
}
return
new_size
>
0
;
...
...
@@ -1911,13 +1914,16 @@ MSVCP_bool __thiscall basic_string_wchar__Grow(basic_string_wchar *this, MSVCP_s
return
FALSE
;
}
if
(
len
>
new_res
)
len
=
new_res
;
*
ptr
=
0
;
if
(
this
->
ptr
)
char_traits_wchar__Copy_s
(
ptr
+
1
,
new_size
,
this
->
ptr
,
this
->
size
);
char_traits_wchar__Copy_s
(
ptr
+
1
,
new_size
,
this
->
ptr
,
len
);
basic_string_wchar__Tidy
(
this
,
TRUE
);
this
->
ptr
=
ptr
+
1
;
this
->
res
=
new_res
;
basic_string_wchar__Eos
(
this
,
len
>
new_res
?
new_res
:
len
);
basic_string_wchar__Eos
(
this
,
len
);
}
return
new_size
>
0
;
...
...
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