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

problem).
This commit is contained in:
James Juran 2001-01-22 19:26:42 +00:00 committed by Alexandre Julliard
parent f12dbd0f08
commit d537d09b9c
2 changed files with 2 additions and 2 deletions

View File

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

View File

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