瀏覽代碼

Merge pull request #2631 from wwylele/fix-unwrap

apt: fix RequestBuilder parameters for Unwrap
Weiyi Wang 9 年之前
父節點
當前提交
2f625f2c6f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/hle/service/apt/apt.cpp

+ 1 - 1
src/core/hle/service/apt/apt.cpp

@@ -554,7 +554,7 @@ void Unwrap(Service::Interface* self) {
     // Decrypts the ciphertext using AES-CCM
     auto pdata = HW::AES::DecryptVerifyCCM(cipher, nonce, HW::AES::KeySlotID::APTWrap);
 
-    IPC::RequestBuilder rb = rp.MakeBuilder(1, 0);
+    IPC::RequestBuilder rb = rp.MakeBuilder(1, 4);
     if (!pdata.empty()) {
         // Splits the plaintext and put the nonce in between
         Memory::WriteBlock(output, pdata.data(), nonce_offset);