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
743e6ba6
Commit
743e6ba6
authored
Apr 19, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Added _vsnwprintf* implementation.
parent
85fa2ee5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
73 additions
and
14 deletions
+73
-14
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+3
-3
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+3
-3
msvcrt.h
dlls/msvcrt/msvcrt.h
+1
-1
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+3
-3
wcs.c
dlls/msvcrt/wcs.c
+63
-4
No files found.
dlls/msvcr80/msvcr80.spec
View file @
743e6ba6
...
...
@@ -1054,9 +1054,9 @@
@ cdecl _vsnprintf_s(ptr long long str ptr) msvcrt._vsnprintf_s
@ cdecl _vsnprintf_s_l(ptr long long str ptr ptr) msvcrt._vsnprintf_s_l
@ cdecl _vsnwprintf(ptr long wstr ptr) msvcrt._vsnwprintf
@
stub
_vsnwprintf_l
@
stub
_vsnwprintf_s
@
stub
_vsnwprintf_s_l
@
cdecl _vsnwprintf_l(ptr long wstr ptr ptr) msvcrt.
_vsnwprintf_l
@
cdecl _vsnwprintf_s(ptr long long wstr ptr) msvcrt.
_vsnwprintf_s
@
cdecl _vsnwprintf_s_l(ptr long long wstr ptr ptr) msvcrt.
_vsnwprintf_s_l
@ stub _vsprintf_l
@ stub _vsprintf_p
@ stub _vsprintf_p_l
...
...
dlls/msvcr90/msvcr90.spec
View file @
743e6ba6
...
...
@@ -1041,9 +1041,9 @@
@ cdecl _vsnprintf_s(ptr long long str ptr) msvcrt._vsnprintf_s
@ cdecl _vsnprintf_s_l(ptr long long str ptr ptr) msvcrt._vsnprintf_s_l
@ cdecl _vsnwprintf(ptr long wstr ptr) msvcrt._vsnwprintf
@
stub
_vsnwprintf_l
@
stub
_vsnwprintf_s
@
stub
_vsnwprintf_s_l
@
cdecl _vsnwprintf_l(ptr long wstr ptr ptr) msvcrt.
_vsnwprintf_l
@
cdecl _vsnwprintf_s(ptr long long wstr ptr) msvcrt.
_vsnwprintf_s
@
cdecl _vsnwprintf_s_l(ptr long long wstr ptr ptr) msvcrt.
_vsnwprintf_s_l
@ stub _vsprintf_l
@ stub _vsprintf_p
@ stub _vsprintf_p_l
...
...
dlls/msvcrt/msvcrt.h
View file @
743e6ba6
...
...
@@ -738,7 +738,7 @@ MSVCRT___time64_t __cdecl MSVCRT__time64(MSVCRT___time64_t*);
MSVCRT_FILE
*
__cdecl
MSVCRT__fdopen
(
int
,
const
char
*
);
MSVCRT_FILE
*
__cdecl
MSVCRT__wfdopen
(
int
,
const
MSVCRT_wchar_t
*
);
int
__cdecl
MSVCRT_vsnprintf
(
char
*
str
,
MSVCRT_size_t
len
,
const
char
*
format
,
__ms_va_list
valist
);
int
__cdecl
MSVCRT_vsnwprintf
(
MSVCRT_wchar_t
*
str
,
unsigned
in
t
len
,
int
__cdecl
MSVCRT_vsnwprintf
(
MSVCRT_wchar_t
*
str
,
MSVCRT_size_
t
len
,
const
MSVCRT_wchar_t
*
format
,
__ms_va_list
valist
);
int
__cdecl
MSVCRT_raise
(
int
sig
);
...
...
dlls/msvcrt/msvcrt.spec
View file @
743e6ba6
...
...
@@ -983,9 +983,9 @@
@ cdecl _vsnprintf_s(ptr long long str ptr) MSVCRT_vsnprintf_s
@ cdecl _vsnprintf_s_l(ptr long long str ptr ptr) MSVCRT_vsnprintf_s_l
@ cdecl _vsnwprintf(ptr long wstr ptr) MSVCRT_vsnwprintf
# stub _vsnw
printf_l
# stub _vsnw
printf_s
# stub _vsnw
printf_s_l
@ cdecl _vsnwprintf_l(ptr long wstr ptr ptr) MSVCRT_vsn
printf_l
@ cdecl _vsnwprintf_s(ptr long long wstr ptr) MSVCRT_vsn
printf_s
@ cdecl _vsnwprintf_s_l(ptr long long wstr ptr ptr) MSVCRT_vsn
printf_s_l
# stub _vsprintf_l
# stub _vsprintf_p
# stub _vsprintf_p_l
...
...
dlls/msvcrt/wcs.c
View file @
743e6ba6
...
...
@@ -935,10 +935,11 @@ int CDECL MSVCRT__snprintf(char *str, unsigned int len, const char *format, ...)
}
/*********************************************************************
*
_vsnwsprintf (MSVCRT.@
)
*
vsnwsprintf_internal (INTERNAL
)
*/
int
CDECL
MSVCRT_vsnwprintf
(
MSVCRT_wchar_t
*
str
,
unsigned
int
len
,
const
MSVCRT_wchar_t
*
format
,
__ms_va_list
valist
)
static
inline
int
vsnwprintf_internal
(
MSVCRT_wchar_t
*
str
,
MSVCRT_size_t
len
,
const
MSVCRT_wchar_t
*
format
,
MSVCRT__locale_t
locale
,
BOOL
valid
,
__ms_va_list
valist
)
{
pf_output
out
;
...
...
@@ -947,7 +948,65 @@ int CDECL MSVCRT_vsnwprintf( MSVCRT_wchar_t *str, unsigned int len,
out
.
used
=
0
;
out
.
len
=
len
;
return
pf_vsnprintf
(
&
out
,
format
,
NULL
,
FALSE
,
valist
);
return
pf_vsnprintf
(
&
out
,
format
,
locale
,
valid
,
valist
);
}
/*********************************************************************
* _vsnwsprintf (MSVCRT.@)
*/
int
CDECL
MSVCRT_vsnwprintf
(
MSVCRT_wchar_t
*
str
,
MSVCRT_size_t
len
,
const
MSVCRT_wchar_t
*
format
,
__ms_va_list
valist
)
{
return
vsnwprintf_internal
(
str
,
len
,
format
,
NULL
,
FALSE
,
valist
);
}
/*********************************************************************
* _vsnwsprintf_l (MSVCRT.@)
*/
int
CDECL
MSVCRT_vsnwprintf_l
(
MSVCRT_wchar_t
*
str
,
MSVCRT_size_t
len
,
const
MSVCRT_wchar_t
*
format
,
MSVCRT__locale_t
locale
,
__ms_va_list
valist
)
{
return
vsnwprintf_internal
(
str
,
len
,
format
,
locale
,
FALSE
,
valist
);
}
/*********************************************************************
* _vsnwsprintf_s_l (MSVCRT.@)
*/
int
CDECL
MSVCRT_vsnwprintf_s_l
(
MSVCRT_wchar_t
*
str
,
MSVCRT_size_t
sizeOfBuffer
,
MSVCRT_size_t
count
,
const
MSVCRT_wchar_t
*
format
,
MSVCRT__locale_t
locale
,
__ms_va_list
valist
)
{
int
len
,
ret
;
len
=
sizeOfBuffer
/
sizeof
(
MSVCRT_wchar_t
);
if
(
count
!=-
1
&&
len
>
count
+
1
)
len
=
count
+
1
;
ret
=
vsnwprintf_internal
(
str
,
len
,
format
,
locale
,
TRUE
,
valist
);
if
(
ret
<
0
||
ret
==
len
)
{
if
(
count
!=
_TRUNCATE
&&
count
>
sizeOfBuffer
/
sizeof
(
MSVCRT_wchar_t
))
{
MSVCRT__invalid_parameter
(
NULL
,
NULL
,
NULL
,
0
,
0
);
*
MSVCRT__errno
()
=
MSVCRT_ERANGE
;
memset
(
str
,
0
,
sizeOfBuffer
);
}
else
str
[
len
-
1
]
=
'\0'
;
return
-
1
;
}
return
ret
;
}
/*********************************************************************
* _vsnwsprintf_s (MSVCRT.@)
*/
int
CDECL
MSVCRT_vsnwprintf_s
(
MSVCRT_wchar_t
*
str
,
MSVCRT_size_t
sizeOfBuffer
,
MSVCRT_size_t
count
,
const
MSVCRT_wchar_t
*
format
,
__ms_va_list
valist
)
{
return
MSVCRT_vsnwprintf_s_l
(
str
,
sizeOfBuffer
,
count
,
format
,
NULL
,
valist
);
}
/*********************************************************************
...
...
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