Lots of defect fixes

This commit is contained in:
Raul Tambre 2015-10-17 20:47:18 +03:00
parent 5dfc22a604
commit fac9d74344
21 changed files with 341 additions and 95 deletions

View file

@ -262,7 +262,13 @@ void MainFrame::InstallPkg(wxCommandEvent& WXUNUSED(event))
// Fetch title ID from the header
char title_id[10] = "?????????";
pkg_f.seek(55);
if (!pkg_f.seek(55))
{
LOG_ERROR(LOADER, "PKG: Failed to seek offset 55.");
return;
}
pkg_f.read(title_id, 9);
pkg_f.seek(0);