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
607a3824
Commit
607a3824
authored
Jul 01, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add _vscprintf and _vscwprintf.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5b36a00b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
ntdll.spec
dlls/ntdll/ntdll.spec
+3
-1
printf.c
dlls/ntdll/printf.c
+19
-0
No files found.
dlls/ntdll/ntdll.spec
View file @
607a3824
...
...
@@ -1523,7 +1523,6 @@
@ varargs _snprintf_s(ptr long long str)
@ varargs _snwprintf(ptr long wstr)
@ varargs _snwprintf_s(ptr long long wstr)
@ varargs _swprintf(ptr wstr) NTDLL_swprintf
@ cdecl _splitpath(str ptr ptr ptr ptr)
@ cdecl _splitpath_s(str ptr long ptr long ptr long ptr long)
@ cdecl _strcmpi(str str) _stricmp
...
...
@@ -1533,6 +1532,7 @@
@ cdecl _strnicmp(str str long)
@ cdecl _strupr(str)
@ cdecl _strupr_s(str long)
@ varargs _swprintf(ptr wstr) NTDLL_swprintf
@ cdecl _tolower(long)
@ cdecl _toupper(long)
@ cdecl _ui64toa(int64 ptr long)
...
...
@@ -1543,6 +1543,8 @@
@ cdecl _ultoa_s(long ptr long long)
@ cdecl _ultow(long ptr long)
@ cdecl _ultow_s(long ptr long long)
@ cdecl _vscprintf(str ptr)
@ cdecl _vscwprintf(wstr ptr)
@ cdecl -norelay _vsnprintf(ptr long str ptr)
@ cdecl _vsnprintf_s(ptr long str ptr)
@ cdecl _vsnwprintf(ptr long wstr ptr)
...
...
dlls/ntdll/printf.c
View file @
607a3824
...
...
@@ -21,6 +21,7 @@
#include <assert.h>
#include <ctype.h>
#include <limits.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
...
...
@@ -76,6 +77,24 @@ int CDECL _vsnwprintf( WCHAR *str, size_t len, const WCHAR *format, va_list args
/*********************************************************************
* _vscprintf (NTDLL.@)
*/
int
CDECL
_vscprintf
(
const
char
*
format
,
va_list
valist
)
{
return
_vsnprintf
(
NULL
,
INT_MAX
,
format
,
valist
);
}
/*********************************************************************
* _vscwprintf (NTDLL.@)
*/
int
CDECL
_vscwprintf
(
const
wchar_t
*
format
,
va_list
args
)
{
return
_vsnwprintf
(
NULL
,
INT_MAX
,
format
,
args
);
}
/*********************************************************************
* _snprintf (NTDLL.@)
*/
int
WINAPIV
NTDLL__snprintf
(
char
*
str
,
size_t
len
,
const
char
*
format
,
...
)
...
...
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