Skip to content

Commit

Permalink
windows: include SHA in minidump name
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Apr 20, 2013
1 parent 99fac00 commit 835a8aa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,16 @@ bool bundleclicked( int argc, char *argv[] )
LONG WINAPI qgisCrashDump( struct _EXCEPTION_POINTERS *ExceptionInfo )
{
QString dumpName = QDir::toNativeSeparators(
QString( "%1\\qgis-%2-%3-%4.dmp" )
QString( "%1\\qgis-%2-%3-%4-%5.dmp" )
.arg( QDir::tempPath() )
.arg( QDateTime::currentDateTime().toString( "yyyyMMdd-hhmmss" ) )
.arg( GetCurrentProcessId() )
.arg( GetCurrentThreadId() ) );
.arg( GetCurrentThreadId() )
.arg( QGis::QGIS_DEV_VERSION )
);

QString msg;
HANDLE hDumpFile = CreateFile( dumpName.toAscii(), GENERIC_READ | GENERIC_WRITE, FILE_SHARE_WRITE | FILE_SHARE_READ, 0, CREATE_ALWAYS, 0, 0 );
HANDLE hDumpFile = CreateFile( dumpName.toLocal8Bit(), GENERIC_READ | GENERIC_WRITE, FILE_SHARE_WRITE | FILE_SHARE_READ, 0, CREATE_ALWAYS, 0, 0 );
if ( hDumpFile != INVALID_HANDLE_VALUE )
{
MINIDUMP_EXCEPTION_INFORMATION ExpParam;
Expand Down

0 comments on commit 835a8aa

Please sign in to comment.