IOS/ES: Fix bug in ImportTicket ioctlv handler

This commit is contained in:
Léo Lam 2017-06-18 23:09:30 +02:00
parent 41f6d7be0d
commit 961c85bf7c
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ IPCCommandResult ES::ImportTicket(const IOCtlVRequest& request)
std::vector<u8> bytes(request.in_vectors[0].size); std::vector<u8> bytes(request.in_vectors[0].size);
Memory::CopyFromEmu(bytes.data(), request.in_vectors[0].address, request.in_vectors[0].size); Memory::CopyFromEmu(bytes.data(), request.in_vectors[0].address, request.in_vectors[0].size);
std::vector<u8> cert_chain(request.in_vectors[1].size); std::vector<u8> cert_chain(request.in_vectors[1].size);
Memory::CopyFromEmu(bytes.data(), request.in_vectors[1].address, request.in_vectors[1].size); Memory::CopyFromEmu(cert_chain.data(), request.in_vectors[1].address, request.in_vectors[1].size);
return GetDefaultReply(ImportTicket(bytes, cert_chain)); return GetDefaultReply(ImportTicket(bytes, cert_chain));
} }