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
This commit is contained in:
mmentovai 2007-09-28 18:24:13 +00:00
parent 68004c84d6
commit 657a6c4a96

View file

@ -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