mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 10:23:22 +00:00
fixing 24 bugs in *printf string version. we are failing 34 test in wine_test msvcrt printf
svn path=/trunk/; revision=22214
This commit is contained in:
parent
1988057885
commit
5f286cc809
|
@ -648,11 +648,6 @@ int _vsnprintf(char *buf, size_t cnt, const char *fmt, va_list args)
|
|||
break;
|
||||
|
||||
default:
|
||||
if (*fmt != '%') {
|
||||
if (str <= end)
|
||||
*str = '%';
|
||||
++str;
|
||||
}
|
||||
if (*fmt) {
|
||||
if (str <= end)
|
||||
*str = *fmt;
|
||||
|
|
|
@ -647,12 +647,7 @@ int _vsnwprintf(wchar_t *buf, size_t cnt, const wchar_t *fmt, va_list args)
|
|||
case L'u':
|
||||
break;
|
||||
|
||||
default:
|
||||
if (*fmt != L'%') {
|
||||
if (str <= end)
|
||||
*str = L'%';
|
||||
++str;
|
||||
}
|
||||
default:
|
||||
if (*fmt) {
|
||||
if (str <= end)
|
||||
*str = *fmt;
|
||||
|
|
Loading…
Reference in a new issue