summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Fifo.cpp
diff options
context:
space:
mode:
authorMai M <mathew1800@gmail.com>2022-04-21 17:32:13 -0400
committerGitHub <noreply@github.com>2022-04-21 17:32:13 -0400
commit2e01dc0c82b5f73215e3425ab45ff6c7ee50b389 (patch)
treeac63ed8f2d8a175d937e71bfabf2f90e839a07e0 /Source/Core/VideoCommon/Fifo.cpp
parent3172199d3396da5ff08682dab526868807e7d50a (diff)
parentef760ee012a1a7a9d8997fecce4f0c9a7122e1bd (diff)
Merge pull request #10592 from AdmiralCurtiss/pointerwrap-protections
Common/PointerWrap: Prevent reads/writes past the end of the buffer.
Diffstat (limited to 'Source/Core/VideoCommon/Fifo.cpp')
-rw-r--r--Source/Core/VideoCommon/Fifo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Fifo.cpp b/Source/Core/VideoCommon/Fifo.cpp
index ccee18f40e..18ef1b432f 100644
--- a/Source/Core/VideoCommon/Fifo.cpp
+++ b/Source/Core/VideoCommon/Fifo.cpp
@@ -94,7 +94,7 @@ void DoState(PointerWrap& p)
p.DoPointer(write_ptr, s_video_buffer);
s_video_buffer_write_ptr = write_ptr;
p.DoPointer(s_video_buffer_read_ptr, s_video_buffer);
- if (p.mode == PointerWrap::MODE_READ && s_use_deterministic_gpu_thread)
+ if (p.GetMode() == PointerWrap::MODE_READ && s_use_deterministic_gpu_thread)
{
// We're good and paused, right?
s_video_buffer_seen_ptr = s_video_buffer_pp_read_ptr = s_video_buffer_read_ptr;