Module: wine Branch: master Commit: f38e0be5ea11784410c6e0781c72b194fc95fd14 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f38e0be5ea11784410c6e0781c...
Author: Frédéric Delanoy frederic.delanoy@gmail.com Date: Fri Nov 25 14:55:40 2011 +0100
winefile: Avoid uninitialized field in SYSTEMTIME structure (Coverity).
---
programs/winefile/winefile.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c index 7876da5..63ce463 100644 --- a/programs/winefile/winefile.c +++ b/programs/winefile/winefile.c @@ -526,6 +526,7 @@ static BOOL time_to_filetime(const time_t* t, FILETIME* ftime) stime.wHour = tm->tm_hour; stime.wMinute = tm->tm_min; stime.wSecond = tm->tm_sec; + stime.wMilliseconds = 0;
return SystemTimeToFileTime(&stime, ftime); }