jirentabu / crashrpt

Automatically exported from code.google.com/p/crashrpt
0 stars 0 forks source link

Timestamp of saved files #135

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use crAddFile2 to add a file in the Crash callback
2. Crash the program
3. Retrieve the file from the crash zip archive

What is the expected output? What do you see instead?

Expect the file's Date Modified to be the original file's modification 
timestamp, but it is set to the original file's creation timestamp.

This can be fixed in ErrorReportSender, 
(CErrorReportSender::CompressReportFiles) by using a different timestamp when 
creating the zip version of the file:

Altering:
        FileTimeToSystemTime(&fi.ftCreationTime, &st);
to be
   FileTimeToSystemTime(&fi.ftLastWriteTime, &st);

What version of CrashRpt are you using?
1.2.0.7  (code is the same in current version)

What is your version of Visual Studio?
VS2010

What is your version of Windows operating system?
XP

Andy

Original issue reported on code.google.com by und...@gmail.com on 4 Mar 2012 at 11:25

GoogleCodeExporter commented 9 years ago

Original comment by zexspect...@gmail.com on 5 Mar 2012 at 2:41

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1354.

Original comment by zexspect...@gmail.com on 26 Aug 2012 at 6:03