aboutsummaryrefslogtreecommitdiff
path: root/src/client/windows
diff options
context:
space:
mode:
authormmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e>2007-09-28 18:24:13 +0000
committermmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e>2007-09-28 18:24:13 +0000
commit657a6c4a96a0fc2ebd07e4f99f10ef00efec26de (patch)
tree8ae3e1a44ffeb37957003866289bfa27bb1b4944 /src/client/windows
parentSolaris version of symbol dumper (#207). Patch by Alfred Peng. r=me (diff)
downloadbreakpad-657a6c4a96a0fc2ebd07e4f99f10ef00efec26de.tar.xz
Assertion in CrashReportSender (windows) when no checkpoint file is desired
(#216). Patch by Ben Turner <bent.mozilla>. r=me. git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@219 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/client/windows')
-rw-r--r--src/client/windows/sender/crash_report_sender.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/windows/sender/crash_report_sender.cc b/src/client/windows/sender/crash_report_sender.cc
index 453adb63..52a1e247 100644
--- a/src/client/windows/sender/crash_report_sender.cc
+++ b/src/client/windows/sender/crash_report_sender.cc
@@ -124,6 +124,9 @@ int CrashReportSender::GetCurrentDate() const {
}
int CrashReportSender::OpenCheckpointFile(const wchar_t *mode, FILE **fd) {
+ if (checkpoint_file_.empty()) {
+ return ENOENT;
+ }
#if _MSC_VER >= 1400 // MSVC 2005/8
return _wfopen_s(fd, checkpoint_file_.c_str(), mode);
#else