From 44c12064a65847b0451b9ea7c14e3fb20841f7ae Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 1 Feb 2016 15:09:23 +0300 Subject: [PATCH] fixed crash reports for windows --- Telegram/SourceFiles/logs.cpp | 2 +- Telegram/SourceFiles/window.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/logs.cpp b/Telegram/SourceFiles/logs.cpp index 54e754364..78c6f4437 100644 --- a/Telegram/SourceFiles/logs.cpp +++ b/Telegram/SourceFiles/logs.cpp @@ -19,7 +19,7 @@ Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE Copyright (c) 2014-2015 John Preston, https://desktop.telegram.org */ #include "stdafx.h" -#include +#include #include "pspecific.h" // see https://blog.inventic.eu/2012/08/qt-and-google-breakpad/ diff --git a/Telegram/SourceFiles/window.cpp b/Telegram/SourceFiles/window.cpp index 9e3c8ccff..e675b15bb 100644 --- a/Telegram/SourceFiles/window.cpp +++ b/Telegram/SourceFiles/window.cpp @@ -2024,6 +2024,9 @@ LastCrashedWindow::LastCrashedWindow() if (!possibleDump.startsWith('/')) { possibleDump = cWorkingDir() + qsl("tdumps/") + possibleDump; } + if (!possibleDump.endsWith('.dmp')) { + possibleDump += qsl(".dmp"); + } QFileInfo possibleInfo(possibleDump); if (possibleInfo.exists()) { _minidumpName = possibleInfo.fileName();