xp-sp3: change grammer to support Qt5.6.3 for xp with sp3 system.
This commit is contained in:
@@ -8,6 +8,12 @@
|
||||
#include <QFileInfo>
|
||||
#include <QStandardPaths>
|
||||
|
||||
#include "backward.hpp"
|
||||
|
||||
std::function<std::string()> backward::SignalHandling::crash_path_getter_ = nullptr;
|
||||
std::function<void(EXCEPTION_POINTERS* info)> backward::SignalHandling::crash_use_handler_ = nullptr;
|
||||
std::function<void(int sig)> backward::SignalHandling::user_sig_handler_ = nullptr;
|
||||
|
||||
namespace backward {
|
||||
|
||||
class crashHelper
|
||||
@@ -126,8 +132,7 @@ void UseExceptionHandler(EXCEPTION_POINTERS* exception)
|
||||
QString fullPath = QDir(h.dumpSavePath_).absoluteFilePath(dumpName);
|
||||
QString fullFailedPath = QDir(h.dumpSavePath_).absoluteFilePath(dumpFailedLog);
|
||||
|
||||
HANDLE hFile =
|
||||
CreateFile(fullPath.toStdWString().c_str(), GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
HANDLE hFile = CreateFile(fullPath.toStdString().c_str(), GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
if (hFile == INVALID_HANDLE_VALUE) {
|
||||
QFile file(fullFailedPath);
|
||||
if (file.open(QIODevice::WriteOnly | QIODevice::Text)) {
|
||||
|
||||
Reference in New Issue
Block a user