mirror of
https://github.com/reactos/reactos.git
synced 2024-07-08 05:35:06 +00:00
Adding same bug fix as 20303 to vfprintf.c it did have same problem. thx for GvG bugfix.
svn path=/trunk/; revision=20326
This commit is contained in:
parent
4e2b520755
commit
344a183c14
|
@ -367,13 +367,20 @@ static int numberf(FILE * f, double __n, char exp_sign, int size, int precision
|
|||
}
|
||||
|
||||
tmp = buf;
|
||||
|
||||
if ( type & ZEROTRUNC && ((type & SPECIAL) != SPECIAL) ) {
|
||||
j = 0;
|
||||
while ( j < i && ( *tmp == '0' || *tmp == '.' )) {
|
||||
while ( j < i && *tmp == L'0' ) {
|
||||
tmp++;
|
||||
i--;
|
||||
}
|
||||
if ( j < i && *tmp == L'.' ) {
|
||||
tmp++;
|
||||
i--;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// else
|
||||
// while (i < precision--)
|
||||
// putc('0', f);
|
||||
|
|
Loading…
Reference in a new issue