From ad9c30a1ad2773da2bfe8adf16a535daf2de040b Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Thu, 26 Mar 2020 12:09:17 -0500 Subject: [PATCH] mf: Strip trailing zeroes in debugstr_time(). Signed-off-by: Zebediah Figura Signed-off-by: Alexandre Julliard --- dlls/mf/mf_private.h | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/mf/mf_private.h b/dlls/mf/mf_private.h index dd8f49e1bc5..14f7288c9bb 100644 --- a/dlls/mf/mf_private.h +++ b/dlls/mf/mf_private.h @@ -72,6 +72,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);