2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #8116 from ameerj/nvhost_ctrl_bad_param

nvhost_ctrl: Only mark EventState::Busy as BadParameter
This commit is contained in:
Fernando S 2022-04-01 01:29:46 +02:00 committed by GitHub
commit 078a6cb0cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -134,7 +134,7 @@ NvResult nvhost_ctrl::IocCtrlEventWait(const std::vector<u8>& input, std::vector
} }
EventState status = events_interface.status[event_id]; EventState status = events_interface.status[event_id];
const bool bad_parameter = status != EventState::Free && status != EventState::Registered; const bool bad_parameter = status == EventState::Busy;
if (bad_parameter) { if (bad_parameter) {
std::memcpy(output.data(), &params, sizeof(params)); std::memcpy(output.data(), &params, sizeof(params));
return NvResult::BadParameter; return NvResult::BadParameter;