diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-06-01 15:05:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-01 15:05:42 +0200 |
commit | 00b6bef65a1d4e2a78165ec27519d14637c97401 (patch) | |
tree | 28bf757e3c207a3d529a62a81100e8768f2227d7 | |
parent | Merge pull request #10474 from GPUCode/you-left-me-waiting (diff) | |
parent | Fix incorrect id check and potential out of bounds lookup (diff) | |
download | yuzu-00b6bef65a1d4e2a78165ec27519d14637c97401.tar yuzu-00b6bef65a1d4e2a78165ec27519d14637c97401.tar.gz yuzu-00b6bef65a1d4e2a78165ec27519d14637c97401.tar.bz2 yuzu-00b6bef65a1d4e2a78165ec27519d14637c97401.tar.lz yuzu-00b6bef65a1d4e2a78165ec27519d14637c97401.tar.xz yuzu-00b6bef65a1d4e2a78165ec27519d14637c97401.tar.zst yuzu-00b6bef65a1d4e2a78165ec27519d14637c97401.zip |
-rw-r--r-- | src/core/hle/service/nvdrv/core/syncpoint_manager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/nvdrv/core/syncpoint_manager.cpp b/src/core/hle/service/nvdrv/core/syncpoint_manager.cpp index aba51d280..c4c4c2593 100644 --- a/src/core/hle/service/nvdrv/core/syncpoint_manager.cpp +++ b/src/core/hle/service/nvdrv/core/syncpoint_manager.cpp @@ -64,7 +64,7 @@ void SyncpointManager::FreeSyncpoint(u32 id) { } bool SyncpointManager::IsSyncpointAllocated(u32 id) const { - return (id <= SyncpointCount) && syncpoints[id].reserved; + return (id < SyncpointCount) && syncpoints[id].reserved; } bool SyncpointManager::HasSyncpointExpired(u32 id, u32 threshold) const { |