Use int instead of WCHAR in va_arg() (fixes gcc-current compilation
problem).
This commit is contained in:
parent
f12dbd0f08
commit
d537d09b9c
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue