Author: greatlrd
Date: Sun Jun 4 23:20:20 2006
New Revision: 22219
URL:
http://svn.reactos.ru/svn/reactos?rev=22219&view=rev
Log:
fixing one more of wine msvcrt printf test
Modified:
trunk/reactos/lib/rtl/sprintf.c
trunk/reactos/lib/rtl/swprintf.c
Modified: trunk/reactos/lib/rtl/sprintf.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/lib/rtl/sprintf.c?rev=22219…
==============================================================================
--- trunk/reactos/lib/rtl/sprintf.c (original)
+++ trunk/reactos/lib/rtl/sprintf.c Sun Jun 4 23:20:20 2006
@@ -122,7 +122,7 @@
size--;
}
i = 0;
- if (num == 0)
+ if ((num == 0) && (precision !=0))
tmp[i++] = '0';
else while (num != 0)
tmp[i++] = digits[do_div(&num,base)];
Modified: trunk/reactos/lib/rtl/swprintf.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/lib/rtl/swprintf.c?rev=2221…
==============================================================================
--- trunk/reactos/lib/rtl/swprintf.c (original)
+++ trunk/reactos/lib/rtl/swprintf.c Sun Jun 4 23:20:20 2006
@@ -122,7 +122,7 @@
size--;
}
i = 0;
- if (num == 0)
+ if ((num == 0) && (precision !=0))
tmp[i++] = L'0';
else while (num != 0)
tmp[i++] = digits[do_div(&num,base)];