HLE/IPC: Don't assert in HLERequestContext::AddStaticBuffer when there's already a static buffer with the desired id.

This could happen if the guest application performs a request with static buffer id X, and the service module responds with another static buffer with the same id X.
This commit is contained in:
Subv 2017-11-28 09:01:15 -05:00
parent e9a95b2e7d
commit 9543e1a1bf

View File

@ -51,7 +51,6 @@ const std::vector<u8>& HLERequestContext::GetStaticBuffer(u8 buffer_id) const {
}
void HLERequestContext::AddStaticBuffer(u8 buffer_id, std::vector<u8> data) {
ASSERT(static_buffers[buffer_id].empty() && !data.empty());
static_buffers[buffer_id] = std::move(data);
}