diff --git a/lib/libhac/source/KernelInitialProcessHeader.cpp b/lib/libhac/source/KernelInitialProcessHeader.cpp index 988c95e..81c23c9 100644 --- a/lib/libhac/source/KernelInitialProcessHeader.cpp +++ b/lib/libhac/source/KernelInitialProcessHeader.cpp @@ -74,7 +74,11 @@ void nn::hac::KernelInitialProcessHeader::toBytes() throw fnd::Exception(kModuleName, "Too many kernel capabilities"); } 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 for (size_t i = 0; i < mFlagList.size(); i++)