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
f90d5a8f
Commit
f90d5a8f
authored
Jan 03, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Jan 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp90: Update data pointer after resizing string.
parent
0633ee42
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
string.c
dlls/msvcp90/string.c
+12
-4
No files found.
dlls/msvcp90/string.c
View file @
f90d5a8f
...
...
@@ -1958,8 +1958,10 @@ basic_string_char* __thiscall basic_string_char_replace_cstr_len(basic_string_ch
if
(
basic_string_char_inside
(
this
,
str
))
inside_pos
=
str
-
ptr
;
if
(
len
<
str_len
)
if
(
len
<
str_len
)
{
basic_string_char_grow
(
this
,
this
->
size
-
len
+
str_len
,
FALSE
);
ptr
=
basic_string_char_ptr
(
this
);
}
if
(
inside_pos
==
-
1
)
{
memmove
(
ptr
+
off
+
str_len
,
ptr
+
off
+
len
,
(
this
->
size
-
off
-
len
)
*
sizeof
(
char
));
...
...
@@ -2044,8 +2046,10 @@ basic_string_char* __thiscall basic_string_char_replace_ch(basic_string_char *th
if
(
MSVCP_basic_string_char_npos
-
count
<=
this
->
size
-
len
)
MSVCP__String_base_Xlen
();
if
(
len
<
count
)
if
(
len
<
count
)
{
basic_string_char_grow
(
this
,
this
->
size
-
len
+
count
,
FALSE
);
ptr
=
basic_string_char_ptr
(
this
);
}
memmove
(
ptr
+
off
+
count
,
ptr
+
off
+
len
,
(
this
->
size
-
off
-
len
)
*
sizeof
(
char
));
MSVCP_char_traits_char_assignn
(
ptr
+
off
,
count
,
ch
);
...
...
@@ -3911,8 +3915,10 @@ basic_string_wchar* __thiscall basic_string_wchar_replace_cstr_len(basic_string_
if
(
basic_string_wchar_inside
(
this
,
str
))
inside_pos
=
str
-
ptr
;
if
(
len
<
str_len
)
if
(
len
<
str_len
)
{
basic_string_wchar_grow
(
this
,
this
->
size
-
len
+
str_len
,
FALSE
);
ptr
=
basic_string_wchar_ptr
(
this
);
}
if
(
inside_pos
==
-
1
)
{
memmove
(
ptr
+
off
+
str_len
,
ptr
+
off
+
len
,
(
this
->
size
-
off
-
len
)
*
sizeof
(
wchar_t
));
...
...
@@ -4005,8 +4011,10 @@ basic_string_wchar* __thiscall basic_string_wchar_replace_ch(basic_string_wchar
if
(
MSVCP_basic_string_wchar_npos
-
count
<=
this
->
size
-
len
)
MSVCP__String_base_Xlen
();
if
(
len
<
count
)
if
(
len
<
count
)
{
basic_string_wchar_grow
(
this
,
this
->
size
-
len
+
count
,
FALSE
);
ptr
=
basic_string_wchar_ptr
(
this
);
}
memmove
(
ptr
+
off
+
count
,
ptr
+
off
+
len
,
(
this
->
size
-
off
-
len
)
*
sizeof
(
wchar_t
));
MSVCP_char_traits_wchar_assignn
(
ptr
+
off
,
count
,
ch
);
...
...
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