From 5f286cc80976ead51fe704a930d0db85ba82c59c Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sun, 4 Jun 2006 17:15:47 +0000 Subject: [PATCH] fixing 24 bugs in *printf string version. we are failing 34 test in wine_test msvcrt printf svn path=/trunk/; revision=22214 --- reactos/lib/rtl/sprintf.c | 5 ----- reactos/lib/rtl/swprintf.c | 7 +------ 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/reactos/lib/rtl/sprintf.c b/reactos/lib/rtl/sprintf.c index dd497dbba96..20de5772adc 100644 --- a/reactos/lib/rtl/sprintf.c +++ b/reactos/lib/rtl/sprintf.c @@ -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; diff --git a/reactos/lib/rtl/swprintf.c b/reactos/lib/rtl/swprintf.c index 8ff1b4dbe7f..cbe3356c962 100644 --- a/reactos/lib/rtl/swprintf.c +++ b/reactos/lib/rtl/swprintf.c @@ -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;