From 657a6c4a96a0fc2ebd07e4f99f10ef00efec26de Mon Sep 17 00:00:00 2001 From: mmentovai Date: Fri, 28 Sep 2007 18:24:13 +0000 Subject: Assertion in CrashReportSender (windows) when no checkpoint file is desired (#216). Patch by Ben Turner . r=me. git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@219 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/client/windows/sender/crash_report_sender.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/client/windows/sender') 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 -- cgit v1.2.1