summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2022-03-29 21:13:30 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2022-03-29 21:13:30 +0200
commit69807dd2088a8576425b569f1919bd8f8bcc379c (patch)
tree50ab022e0a8a6542ed2a55dbea0ed9e8fe6c0c7f /src/core
parentMerge pull request #8098 from merryhime/ic-ivau (diff)
downloadyuzu-69807dd2088a8576425b569f1919bd8f8bcc379c.tar
yuzu-69807dd2088a8576425b569f1919bd8f8bcc379c.tar.gz
yuzu-69807dd2088a8576425b569f1919bd8f8bcc379c.tar.bz2
yuzu-69807dd2088a8576425b569f1919bd8f8bcc379c.tar.lz
yuzu-69807dd2088a8576425b569f1919bd8f8bcc379c.tar.xz
yuzu-69807dd2088a8576425b569f1919bd8f8bcc379c.tar.zst
yuzu-69807dd2088a8576425b569f1919bd8f8bcc379c.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp
index f9b82b504..44c54c665 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp
+++ b/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;