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
8028ef5b
Commit
8028ef5b
authored
Jan 05, 2023
by
Piotr Caban
Committed by
Alexandre Julliard
Jan 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcirt: Fix ostream_print_char on 0 character.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=54180
parent
dbe6244f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
msvcirt.c
dlls/msvcirt/msvcirt.c
+13
-10
No files found.
dlls/msvcirt/msvcirt.c
View file @
8028ef5b
...
...
@@ -2670,15 +2670,12 @@ ostream* __thiscall ostream_write(ostream *this, const char *str, int count)
return
this
;
}
/* ?writepad@ostream@@AAEAAV1@PBD0@Z */
/* ?writepad@ostream@@AEAAAEAV1@PEBD0@Z */
DEFINE_THISCALL_WRAPPER
(
ostream_writepad
,
12
)
ostream
*
__thiscall
ostream_writepad
(
ostream
*
this
,
const
char
*
str1
,
const
char
*
str2
)
static
ostream
*
ostream_writepad_len
(
ostream
*
this
,
const
char
*
str1
,
const
char
*
str2
,
int
len2
)
{
ios
*
base
=
ostream_get_ios
(
this
);
int
len1
=
strlen
(
str1
),
len2
=
strlen
(
str2
),
i
;
int
len1
=
strlen
(
str1
),
i
;
TRACE
(
"(%p %p %p
)
\n
"
,
this
,
str1
,
str
2
);
TRACE
(
"(%p %p %p
%d)
\n
"
,
this
,
str1
,
str2
,
len
2
);
/* left of the padding */
if
(
base
->
flags
&
(
FLAGS_left
|
FLAGS_internal
))
{
...
...
@@ -2703,6 +2700,14 @@ ostream* __thiscall ostream_writepad(ostream *this, const char *str1, const char
return
this
;
}
/* ?writepad@ostream@@AAEAAV1@PBD0@Z */
/* ?writepad@ostream@@AEAAAEAV1@PEBD0@Z */
DEFINE_THISCALL_WRAPPER
(
ostream_writepad
,
12
)
ostream
*
__thiscall
ostream_writepad
(
ostream
*
this
,
const
char
*
str1
,
const
char
*
str2
)
{
return
ostream_writepad_len
(
this
,
str1
,
str2
,
strlen
(
str2
));
}
static
ostream
*
ostream_internal_print_integer
(
ostream
*
ostr
,
int
n
,
BOOL
unsig
,
BOOL
shrt
)
{
ios
*
base
=
ostream_get_ios
(
ostr
);
...
...
@@ -2792,12 +2797,10 @@ static ostream* ostream_internal_print_float(ostream *ostr, double d, BOOL dbl)
DEFINE_THISCALL_WRAPPER
(
ostream_print_char
,
8
)
ostream
*
__thiscall
ostream_print_char
(
ostream
*
this
,
char
c
)
{
const
char
c_str
[
2
]
=
{
c
,
0
};
TRACE
(
"(%p %c)
\n
"
,
this
,
c
);
TRACE
(
"(%p %d)
\n
"
,
this
,
c
);
if
(
ostream_opfx
(
this
))
{
ostream_writepad
(
this
,
""
,
c_str
);
ostream_writepad
_len
(
this
,
""
,
&
c
,
1
);
ostream_osfx
(
this
);
}
return
this
;
...
...
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