Commit e188fda2 authored by Ove Kaaven's avatar Ove Kaaven Committed by Alexandre Julliard

Handle the %f case in wsprintf.

parent 4e73f7e9
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment