mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-12-27 05:36:42 +00:00
Fix incorrect id check and potential out of bounds lookup
This commit is contained in:
parent
810d19b6be
commit
6839341f17
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue