Be more intentional with check

This commit is contained in:
Zak Kurka 2018-10-20 18:17:54 -05:00
parent 261dc33507
commit 2a5b56bb1d
1 changed files with 1 additions and 1 deletions

View File

@ -539,7 +539,7 @@ Loader::ResultStatus NCCHContainer::ApplyIPS(std::vector<u8>& ips, std::vector<u
u32 patch_length = ips.size() - 3;
std::string ips_header(ips.begin(), ips.begin() + 5);
if (strcmp(ips_header.c_str(), "PATCH"))
if (strcmp(ips_header.c_str(), "PATCH") != 0)
return Loader::ResultStatus::Error;
while (cursor < patch_length) {