From 404a968f14c2ed5b94ca35a433cc81a5a9cd197d Mon Sep 17 00:00:00 2001 From: Justin Hammond Date: Wed, 22 Jan 2020 17:07:39 +0800 Subject: [PATCH] Really fix the crash path creation --- qt-ozwdaemon/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qt-ozwdaemon/main.cpp b/qt-ozwdaemon/main.cpp index 0cc4766..a079482 100644 --- a/qt-ozwdaemon/main.cpp +++ b/qt-ozwdaemon/main.cpp @@ -289,9 +289,9 @@ int main(int argc, char *argv[]) bppath = QStandardPaths::standardLocations(QStandardPaths::TempLocation).at(0); qInfo() << "Using BreakPad - Crash Directory: " << bppath; /* ensure path exists */ - QDir dir(bppath); - if (!dir.exists()) { - dir.mkpath(); + QDir dir; + if (!dir.exists(bppath)) { + dir.mkpath(bppath); } google_breakpad::MinidumpDescriptor descriptor(bppath.toStdString()); google_breakpad::ExceptionHandler eh(descriptor, NULL, dumpCallback, static_cast(&daemon), true, -1);