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