Skip to content

Commit ebd55c1

Browse files
authored
fix: fix crash in crashReporter.getUploadedReports (electron#20428)
1 parent 2ce90f8 commit ebd55c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

shell/common/crash_reporter/crash_reporter_crashpad.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ CrashReporterCrashpad::GetUploadedReports(const base::FilePath& crashes_dir) {
109109

110110
auto sort_by_time = [](const UploadReportResult& a,
111111
const UploadReportResult& b) {
112-
return a.first >= b.first;
112+
return a.first > b.first;
113113
};
114114
std::sort(uploaded_reports.begin(), uploaded_reports.end(), sort_by_time);
115115
return uploaded_reports;

0 commit comments

Comments
 (0)