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