Be more intentional with check
This commit is contained in:
parent
261dc33507
commit
2a5b56bb1d
@ -539,7 +539,7 @@ Loader::ResultStatus NCCHContainer::ApplyIPS(std::vector<u8>& ips, std::vector<u
|
|||||||
u32 patch_length = ips.size() - 3;
|
u32 patch_length = ips.size() - 3;
|
||||||
std::string ips_header(ips.begin(), ips.begin() + 5);
|
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;
|
return Loader::ResultStatus::Error;
|
||||||
|
|
||||||
while (cursor < patch_length) {
|
while (cursor < patch_length) {
|
||||||
|
Loading…
Reference in New Issue
Block a user