[libhac] Stub unused entries in KIP KernelCapList.

This commit is contained in:
jakcron 2018-11-05 14:57:47 +08:00
parent 5af7558a1b
commit 696cd481e3

View file

@ -74,7 +74,11 @@ void nn::hac::KernelInitialProcessHeader::toBytes()
throw fnd::Exception(kModuleName, "Too many kernel capabilities"); throw fnd::Exception(kModuleName, "Too many kernel capabilities");
} }
memcpy(hdr->capabilities, mKernelCapabilities.getBytes().data(), mKernelCapabilities.getBytes().size()); memcpy(hdr->capabilities, mKernelCapabilities.getBytes().data(), mKernelCapabilities.getBytes().size());
//memset(hdr->capabilities + mKernelCapabilities.getBytes().size(), 0xff, kip::kKernCapabilitySize - mKernelCapabilities.getBytes().size()); if (mKernelCapabilities.getBytes().size() < kip::kKernCapabilitySize)
{
}
memset(hdr->capabilities + mKernelCapabilities.getBytes().size(), 0xff, kip::kKernCapabilitySize - mKernelCapabilities.getBytes().size());
// flags // flags
for (size_t i = 0; i < mFlagList.size(); i++) for (size_t i = 0; i < mFlagList.size(); i++)