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
f7352269
Commit
f7352269
authored
Oct 18, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp90: Use debugstr_a to avoid overflow in traces.
parent
59514c46
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
string.c
dlls/msvcp90/string.c
+7
-7
No files found.
dlls/msvcp90/string.c
View file @
f7352269
...
...
@@ -943,7 +943,7 @@ DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_ctor_cstr_len, 12)
basic_string_char
*
__thiscall
MSVCP_basic_string_char_ctor_cstr_len
(
basic_string_char
*
this
,
const
char
*
str
,
MSVCP_size_t
len
)
{
TRACE
(
"%p %s %ld
\n
"
,
this
,
str
,
len
);
TRACE
(
"%p %s %ld
\n
"
,
this
,
debugstr_a
(
str
)
,
len
);
basic_string_char_tidy
(
this
,
FALSE
,
0
);
MSVCP_basic_string_char_assign_cstr_len
(
this
,
str
,
len
);
...
...
@@ -1152,7 +1152,7 @@ DEFINE_THISCALL_WRAPPER(MSVCP_basic_string_char_append_cstr_len, 12)
basic_string_char
*
__thiscall
MSVCP_basic_string_char_append_cstr_len
(
basic_string_char
*
this
,
const
char
*
append
,
MSVCP_size_t
count
)
{
TRACE
(
"%p %s %lu
\n
"
,
this
,
append
,
count
);
TRACE
(
"%p %s %lu
\n
"
,
this
,
debugstr_a
(
append
)
,
count
);
if
(
basic_string_char_inside
(
this
,
append
))
return
MSVCP_basic_string_char_append_substr
(
this
,
this
,
...
...
@@ -1235,7 +1235,7 @@ basic_string_char* __thiscall MSVCP_basic_string_char_append_ch(
basic_string_char
*
__cdecl
MSVCP_basic_string_char_concatenate_bstr_cstr
(
basic_string_char
*
ret
,
const
basic_string_char
*
left
,
const
char
*
right
)
{
TRACE
(
"%p %s
\n
"
,
left
,
right
);
TRACE
(
"%p %s
\n
"
,
left
,
debugstr_a
(
right
)
);
MSVCP_basic_string_char_copy_ctor
(
ret
,
left
);
MSVCP_basic_string_char_append_cstr
(
ret
,
right
);
...
...
@@ -1247,7 +1247,7 @@ basic_string_char* __cdecl MSVCP_basic_string_char_concatenate_bstr_cstr(basic_s
basic_string_char
*
__cdecl
MSVCP_basic_string_char_concatenate_cstr_bstr
(
basic_string_char
*
ret
,
const
char
*
left
,
const
basic_string_char
*
right
)
{
TRACE
(
"%s %p
\n
"
,
left
,
right
);
TRACE
(
"%s %p
\n
"
,
debugstr_a
(
left
)
,
right
);
MSVCP_basic_string_char_ctor_cstr
(
ret
,
left
);
MSVCP_basic_string_char_append
(
ret
,
right
);
...
...
@@ -1299,7 +1299,7 @@ int __thiscall MSVCP_basic_string_char_compare_substr_cstr_len(
{
int
ans
;
TRACE
(
"%p %lu %lu %s %lu
\n
"
,
this
,
pos
,
num
,
str
,
count
);
TRACE
(
"%p %lu %lu %s %lu
\n
"
,
this
,
pos
,
num
,
debugstr_a
(
str
)
,
count
);
if
(
this
->
size
<
pos
)
MSVCP__String_base_Xran
();
...
...
@@ -1531,7 +1531,7 @@ MSVCP_size_t __thiscall MSVCP_basic_string_char_find_cstr_substr(
{
const
char
*
p
,
*
end
;
TRACE
(
"%p %s %lu %lu
\n
"
,
this
,
find
,
pos
,
len
);
TRACE
(
"%p %s %lu %lu
\n
"
,
this
,
debugstr_a
(
find
)
,
pos
,
len
);
if
(
len
==
0
&&
pos
<=
this
->
size
)
return
pos
;
...
...
@@ -1586,7 +1586,7 @@ MSVCP_size_t __thiscall MSVCP_basic_string_char_rfind_cstr_substr(
{
const
char
*
p
,
*
end
;
TRACE
(
"%p %s %lu %lu
\n
"
,
this
,
find
,
pos
,
len
);
TRACE
(
"%p %s %lu %lu
\n
"
,
this
,
debugstr_a
(
find
)
,
pos
,
len
);
if
(
len
==
0
)
return
pos
<
this
->
size
?
pos
:
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