mfplat: Strip trailing zeroes in debugstr_time().

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2020-03-26 12:09:18 -05:00 committed by Alexandre Julliard
parent ad9c30a1ad
commit 920715108f
1 changed files with 1 additions and 0 deletions

View File

@ -198,6 +198,7 @@ static inline const char *debugstr_time(LONGLONG time)
if (time < 0) buffer[i++] = '-';
while (i--) rev[j++] = buffer[i];
while (rev[j-1] == '0' && rev[j-2] != '.') --j;
rev[j] = 0;
return wine_dbg_sprintf("%s", rev);