fix build failure

This commit is contained in:
Justin Hammond 2020-01-22 15:34:07 +08:00
parent adb57e8dc8
commit 01dd1b7224

View file

@ -289,8 +289,9 @@ int main(int argc, char *argv[])
bppath = QStandardPaths::standardLocations(QStandardPaths::TempLocation).at(0); bppath = QStandardPaths::standardLocations(QStandardPaths::TempLocation).at(0);
qInfo() << "Using BreakPad - Crash Directory: " << bppath; qInfo() << "Using BreakPad - Crash Directory: " << bppath;
/* ensure path exists */ /* ensure path exists */
if (!QDir::exists(bppath)) { QDir dir(bppath);
QDir::mkpath(bppath); if (!dir.exists()) {
dir.mkpath();
} }
google_breakpad::MinidumpDescriptor descriptor(bppath.toStdString()); google_breakpad::MinidumpDescriptor descriptor(bppath.toStdString());
google_breakpad::ExceptionHandler eh(descriptor, NULL, dumpCallback, static_cast<void *>(&daemon), true, -1); google_breakpad::ExceptionHandler eh(descriptor, NULL, dumpCallback, static_cast<void *>(&daemon), true, -1);