소스 검색

Merge pull request #8116 from ameerj/nvhost_ctrl_bad_param

nvhost_ctrl: Only mark EventState::Busy as BadParameter
Fernando S 4 년 전
부모
커밋
078a6cb0cb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp

+ 1 - 1
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;