Skip to content

Commit b11a482

Browse files
committed
Fix crashreporter bugs:
- Crashreporter fails to start if home dir has unicode - Crashreporter fails to start app
1 parent 388a9fc commit b11a482

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

3rdparty/crashreporter

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ int main(int argc, char *argv[])
1919
QFileInfo appPath(QString::fromLocal8Bit(argv[0]));
2020
QString appDir(appPath.absoluteDir().path());
2121
QString crashReporterPath = QString("%1/crashreporter").arg(appDir.isEmpty() ? "." : appDir);
22-
CrashHandler::instance()->Init(QDir::homePath(), appDir, crashReporterPath);
22+
CrashHandler::instance()->Init(QDir::homePath(), appPath.absoluteFilePath(), crashReporterPath);
2323
#endif
2424

2525
Application a(argc, argv);

src/modules/crashhandler/crashhandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ bool DumpCallback(const char* _dump_dir,const char* _minidump_id,void *context,
7373
#if defined(WIN32)
7474
wcscat_s( crashReporterPath, L" \"");
7575
wcscat_s( crashReporterPath, _dump_dir );
76-
wcscat_s( crashReporterPath, L"\\" );
76+
wcscat_s( crashReporterPath, L"/" );
7777
wcscat_s( crashReporterPath, _minidump_id );
7878
wcscat_s( crashReporterPath, L".dmp\"" );
7979
wcscat_s( crashReporterPath, L" \"");

0 commit comments

Comments
 (0)