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
a17b2c1c
Commit
a17b2c1c
authored
Jan 24, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Use the msvcrt version of printf everywhere.
parent
5cd6b342
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
console.c
dlls/msvcrt/console.c
+1
-1
file.c
dlls/msvcrt/file.c
+1
-1
msvcrt.h
dlls/msvcrt/msvcrt.h
+2
-2
wcs.c
dlls/msvcrt/wcs.c
+1
-1
No files found.
dlls/msvcrt/console.c
View file @
a17b2c1c
...
...
@@ -254,7 +254,7 @@ int _cprintf(const char* format, ...)
* Return the number of bytes that would have been written
* The code below handles both cases
*/
while
((
written
=
_
snprintf
(
mem
,
resize
,
format
,
valist
))
==
-
1
||
while
((
written
=
MSVCRT_v
snprintf
(
mem
,
resize
,
format
,
valist
))
==
-
1
||
written
>
resize
)
{
resize
=
(
written
==
-
1
?
resize
*
2
:
written
+
1
);
...
...
dlls/msvcrt/file.c
View file @
a17b2c1c
...
...
@@ -2908,7 +2908,7 @@ int MSVCRT_vfwprintf(MSVCRT_FILE* file, const MSVCRT_wchar_t *format, va_list va
MSVCRT_wchar_t
buf
[
2048
],
*
mem
=
buf
;
int
written
,
resize
=
sizeof
(
buf
)
/
sizeof
(
MSVCRT_wchar_t
),
retval
;
/* See vfprintf comments */
while
((
written
=
_vsnwprintf
(
mem
,
resize
,
format
,
valist
))
==
-
1
||
while
((
written
=
MSVCRT
_vsnwprintf
(
mem
,
resize
,
format
,
valist
))
==
-
1
||
written
>
resize
)
{
resize
=
(
written
==
-
1
?
resize
*
2
:
written
+
sizeof
(
MSVCRT_wchar_t
));
...
...
dlls/msvcrt/msvcrt.h
View file @
a17b2c1c
...
...
@@ -611,11 +611,12 @@ double MSVCRT_difftime(MSVCRT_time_t time1, MSVCRT_time_t time2);
MSVCRT_time_t
MSVCRT_time
(
MSVCRT_time_t
*
);
MSVCRT_FILE
*
MSVCRT__fdopen
(
int
,
const
char
*
);
int
MSVCRT_vsnprintf
(
char
*
str
,
unsigned
int
len
,
const
char
*
format
,
va_list
valist
);
int
MSVCRT_vsnwprintf
(
MSVCRT_wchar_t
*
str
,
unsigned
int
len
,
const
MSVCRT_wchar_t
*
format
,
va_list
valist
);
#ifndef __WINE_MSVCRT_TEST
int
_write
(
int
,
const
void
*
,
unsigned
int
);
int
_getch
(
void
);
int
_vsnwprintf
(
MSVCRT_wchar_t
*
,
MSVCRT_size_t
,
const
MSVCRT_wchar_t
*
,
va_list
);
int
_ismbstrail
(
const
unsigned
char
*
start
,
const
unsigned
char
*
str
);
MSVCRT_intptr_t
_spawnve
(
int
,
const
char
*
,
const
char
*
const
*
,
const
char
*
const
*
);
void
_searchenv
(
const
char
*
,
const
char
*
,
char
*
);
...
...
@@ -626,7 +627,6 @@ char* _strset(char*,int);
int
_ungetch
(
int
);
int
_cputs
(
const
char
*
);
int
_cprintf
(
const
char
*
,...);
int
_snprintf
(
char
*
,
size_t
,
const
char
*
,...);
char
***
__p__environ
(
void
);
int
*
__p___mb_cur_max
(
void
);
unsigned
int
*
__p__fmode
(
void
);
...
...
dlls/msvcrt/wcs.c
View file @
a17b2c1c
...
...
@@ -764,7 +764,7 @@ int MSVCRT__snprintf(char *str, unsigned int len, const char *format, ...)
* _vsnwsprintf (MSVCRT.@)
*/
int
MSVCRT_vsnwprintf
(
MSVCRT_wchar_t
*
str
,
unsigned
int
len
,
const
WCHAR
*
format
,
va_list
valist
)
const
MSVCRT_wchar_t
*
format
,
va_list
valist
)
{
pf_output
out
;
...
...
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