Skip to content

Commit 835a8aa

Browse files
committed
windows: include SHA in minidump name
1 parent 99fac00 commit 835a8aa

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/app/main.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,16 @@ bool bundleclicked( int argc, char *argv[] )
154154
LONG WINAPI qgisCrashDump( struct _EXCEPTION_POINTERS *ExceptionInfo )
155155
{
156156
QString dumpName = QDir::toNativeSeparators(
157-
QString( "%1\\qgis-%2-%3-%4.dmp" )
157+
QString( "%1\\qgis-%2-%3-%4-%5.dmp" )
158158
.arg( QDir::tempPath() )
159159
.arg( QDateTime::currentDateTime().toString( "yyyyMMdd-hhmmss" ) )
160160
.arg( GetCurrentProcessId() )
161-
.arg( GetCurrentThreadId() ) );
161+
.arg( GetCurrentThreadId() )
162+
.arg( QGis::QGIS_DEV_VERSION )
163+
);
162164

163165
QString msg;
164-
HANDLE hDumpFile = CreateFile( dumpName.toAscii(), GENERIC_READ | GENERIC_WRITE, FILE_SHARE_WRITE | FILE_SHARE_READ, 0, CREATE_ALWAYS, 0, 0 );
166+
HANDLE hDumpFile = CreateFile( dumpName.toLocal8Bit(), GENERIC_READ | GENERIC_WRITE, FILE_SHARE_WRITE | FILE_SHARE_READ, 0, CREATE_ALWAYS, 0, 0 );
165167
if ( hDumpFile != INVALID_HANDLE_VALUE )
166168
{
167169
MINIDUMP_EXCEPTION_INFORMATION ExpParam;

0 commit comments

Comments
 (0)