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
4f1f95b1
Commit
4f1f95b1
authored
Apr 02, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp: Define _vsnprintf().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b360bf81
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
msvcp_main.c
dlls/msvcp90/msvcp_main.c
+6
-0
misc.c
dlls/vcruntime140/misc.c
+10
-0
No files found.
dlls/msvcp90/msvcp_main.c
View file @
4f1f95b1
...
...
@@ -136,6 +136,12 @@ int WINAPIV sprintf(char *buf, const char *fmt, ...)
__ms_va_end
(
valist
);
return
ret
;
}
int
__cdecl
_vsnprintf
(
char
*
buf
,
size_t
size
,
const
char
*
fmt
,
__ms_va_list
args
)
{
return
__stdio_common_vsprintf
(
UCRTBASE_PRINTF_STANDARD_SNPRINTF_BEHAVIOUR
,
buf
,
size
,
fmt
,
NULL
,
args
);
}
#endif
static
void
init_cxx_funcs
(
void
)
...
...
dlls/vcruntime140/misc.c
View file @
4f1f95b1
...
...
@@ -22,6 +22,10 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
vcruntime
);
#define UCRTBASE_PRINTF_STANDARD_SNPRINTF_BEHAVIOUR (0x0002)
int
__cdecl
__stdio_common_vsprintf
(
unsigned
__int64
options
,
char
*
str
,
size_t
len
,
const
char
*
format
,
_locale_t
locale
,
__ms_va_list
valist
);
int
*
CDECL
__processing_throw
(
void
);
/*********************************************************************
...
...
@@ -54,3 +58,9 @@ int __cdecl __uncaught_exceptions(void)
{
return
*
__processing_throw
();
}
int
__cdecl
_vsnprintf
(
char
*
buf
,
size_t
size
,
const
char
*
fmt
,
__ms_va_list
args
)
{
return
__stdio_common_vsprintf
(
UCRTBASE_PRINTF_STANDARD_SNPRINTF_BEHAVIOUR
,
buf
,
size
,
fmt
,
NULL
,
args
);
}
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