Handle the %f case in wsprintf.

This commit is contained in:
Ove Kaaven 2001-04-16 19:00:42 +00:00 committed by Alexandre Julliard
parent 4e73f7e9ac
commit e188fda25f
2 changed files with 8 additions and 2 deletions

View File

@ -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)

View File

@ -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)