Commit d537d09b authored by James Juran's avatar James Juran Committed by Alexandre Julliard

Use int instead of WCHAR in va_arg() (fixes gcc-current compilation

problem).
parent f12dbd0f
......@@ -181,7 +181,7 @@ int __cdecl MSVCRT__vsnwprintf(WCHAR *str, unsigned int len,
case (WCHAR)L'c':
if (written++ >= len)
return -1;
*str++ = va_arg(valist, WCHAR);
*str++ = (WCHAR)va_arg(valist, int);
iter++;
break;
......
......@@ -429,7 +429,7 @@ static int __cdecl NTDLL_vsnwprintf(WCHAR *str, unsigned int len,
case (WCHAR)L'c':
if (written++ >= len)
return -1;
*str++ = va_arg(valist, WCHAR);
*str++ = (WCHAR)va_arg(valist, int);
iter++;
break;
......
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