crypt32: Fix filetime_to_str() for the case where it is called twice for a single trace.

This commit is contained in:
Francois Gouget 2011-09-18 22:55:20 +02:00 committed by Alexandre Julliard
parent 6454ec7f5d
commit def2863d60
1 changed files with 2 additions and 2 deletions

View File

@ -1664,7 +1664,7 @@ static void dump_extension(const CERT_EXTENSION *ext)
static LPCSTR filetime_to_str(const FILETIME *time)
{
static char date[80];
char date[80];
char dateFmt[80]; /* sufficient for all versions of LOCALE_SSHORTDATE */
SYSTEMTIME sysTime;
@ -1675,7 +1675,7 @@ static LPCSTR filetime_to_str(const FILETIME *time)
FileTimeToSystemTime(time, &sysTime);
GetDateFormatA(LOCALE_SYSTEM_DEFAULT, 0, &sysTime, dateFmt, date,
sizeof(date) / sizeof(date[0]));
return date;
return wine_dbg_sprintf("%s", date);
}
static void dump_element(PCCERT_CONTEXT cert)