diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-05-24 21:05:02 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-05-24 21:08:05 +0200 |
commit | aaff9f4862b89a4318b93d19511694e5d6321acc (patch) | |
tree | 8c02c6889174a0789408de3cea15a269a54cdcd1 /svx/source/dialog/crashreportdlg.cxx | |
parent | 0b35dcb579c90b9f8759d49ece6c71795367eec2 (diff) |
use correct path for minidump_upload on windows
Change-Id: I1cd60d8b8b1c55b039f76bdaa4f73dc31e654d12
Diffstat (limited to 'svx/source/dialog/crashreportdlg.cxx')
-rw-r--r-- | svx/source/dialog/crashreportdlg.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/svx/source/dialog/crashreportdlg.cxx b/svx/source/dialog/crashreportdlg.cxx index 091432f73a5b..a3ac1d940670 100644 --- a/svx/source/dialog/crashreportdlg.cxx +++ b/svx/source/dialog/crashreportdlg.cxx @@ -55,7 +55,11 @@ IMPL_LINK_TYPED(CrashReportDialog, BtnHdl, Button*, pBtn, void) if (pBtn == mpBtnSend.get()) { std::string ini_path = CrashReporter::getIniFileName(); +#if defined WNT + OString aCommand = getLibDir().copy(8) + "/minidump_upload.exe " + ini_path.c_str(); +#else OString aCommand = getLibDir().copy(7) + "/minidump_upload " + ini_path.c_str(); +#endif int retVal = std::system(aCommand.getStr()); SAL_WARN_IF(retVal != 0, "svx.dialog", "Failed to upload minidump. Error Code: " << retVal); // TODO: moggi: return the id for the user to look it up |