Skip to content

Commit

Permalink
Merge pull request #104 from VerySleepy/fix-no-minidump
Browse files Browse the repository at this point in the history
don't insist/assume that the .sleepy file has a minidump
  • Loading branch information
CyberShadow committed May 18, 2022
2 parents 536be5a + ba2c88d commit d3cbe10
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/wxProfilerGUI/database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,11 @@ void Database::loadFromPath(const std::wstring& _profilepath, bool collapseOSCal
loadStats(zip);
}
{
if (zip.OpenEntry(*entries["minidump.dmp"])) {
has_minidump = true;
if (loadMinidump) this->loadMinidump(zip);
if (entries.find("minidump.dmp") != entries.end()) {
if (zip.OpenEntry(*entries["minidump.dmp"])) {
has_minidump = true;
if (loadMinidump) this->loadMinidump(zip);
}
}
}
zip.CloseEntry();
Expand Down

0 comments on commit d3cbe10

Please sign in to comment.