Handle the %f case in wsprintf.
This commit is contained in:
parent
4e73f7e9ac
commit
e188fda25f
|
@ -201,6 +201,9 @@ int _vsnwprintf(WCHAR *str, unsigned int len,
|
|||
{
|
||||
*fmta++ = *iter;
|
||||
*fmta = '\0';
|
||||
if (*iter == (WCHAR)L'f')
|
||||
sprintf(bufaiter, fmtbufa, va_arg(valist, double));
|
||||
else
|
||||
sprintf(bufaiter, fmtbufa, va_arg(valist, void *));
|
||||
}
|
||||
while (*bufaiter)
|
||||
|
|
|
@ -444,6 +444,9 @@ static int __cdecl NTDLL_vsnwprintf(WCHAR *str, unsigned int len,
|
|||
{
|
||||
*fmta++ = *iter;
|
||||
*fmta = '\0';
|
||||
if (*iter == (WCHAR)L'f')
|
||||
sprintf(bufaiter, fmtbufa, va_arg(valist, double));
|
||||
else
|
||||
sprintf(bufaiter, fmtbufa, va_arg(valist, void *));
|
||||
}
|
||||
while (*bufaiter)
|
||||
|
|
Loading…
Reference in New Issue