Browse Source

Merge pull request #8116 from ameerj/nvhost_ctrl_bad_param

nvhost_ctrl: Only mark EventState::Busy as BadParameter
nce_cpp
Fernando S 4 years ago
committed by GitHub
parent
commit
c5beddca49
  1. 2
      src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp

2
src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp

@ -134,7 +134,7 @@ NvResult nvhost_ctrl::IocCtrlEventWait(const std::vector<u8>& input, std::vector
}
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) {
std::memcpy(output.data(), &params, sizeof(params));
return NvResult::BadParameter;

Loading…
Cancel
Save