[hac] Fix bug where stubbed kernel entries were not ignored.

This commit is contained in:
jakcron 2018-10-29 19:11:48 +08:00
parent 9bc40e3a99
commit cd29ed80e6
2 changed files with 4 additions and 1 deletions

View file

@ -48,7 +48,7 @@ namespace hac
}
if (id == kc::KC_INVALID && cap == (uint32_t)0xffffffff)
id == kc::KC_STUB;
id = kc::KC_STUB;
return id;
}

View file

@ -117,6 +117,9 @@ void nn::hac::KernelCapabilityControl::fromBytes(const byte_t * data, size_t len
case (kc::KC_MISC_FLAGS):
miscFlagsCaps.addElement(cap);
break;
case (kc::KC_STUB):
// ignore stubbed
break;
default:
throw fnd::Exception(kModuleName, "Unsupported kernel capability type");
}