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,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)
{

View File

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