diff options
Diffstat (limited to 'src/client/windows')
-rw-r--r-- | src/client/windows/sender/crash_report_sender.cc | 3 |
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 |