quartz: 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:
parent
920715108f
commit
be4b345908
|
@ -51,6 +51,7 @@ static inline const char *debugstr_time(REFERENCE_TIME time)
|
||||||
if (time < 0) buffer[i++] = '-';
|
if (time < 0) buffer[i++] = '-';
|
||||||
|
|
||||||
while (i--) rev[j++] = buffer[i];
|
while (i--) rev[j++] = buffer[i];
|
||||||
|
while (rev[j-1] == '0' && rev[j-2] != '.') --j;
|
||||||
rev[j] = 0;
|
rev[j] = 0;
|
||||||
|
|
||||||
return wine_dbg_sprintf("%s", rev);
|
return wine_dbg_sprintf("%s", rev);
|
||||||
|
|
Loading…
Reference in New Issue