mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-02-20 18:31:22 +00:00
[c-host] fix bounds checking on frame index
This commit is contained in:
parent
a75b95694b
commit
9d6d137b50
2 changed files with 2 additions and 2 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
B1-104-gc7aa8871e4+1
|
||||
B1-105-ga75b95694b+1
|
|
@ -160,7 +160,7 @@ static int frameThread(void * opaque)
|
|||
|
||||
// we increment the index first so that if we need to repeat a frame
|
||||
// the index still points to the latest valid frame
|
||||
if (app.frameIndex++ == LGMP_Q_FRAME_LEN)
|
||||
if (++app.frameIndex == LGMP_Q_FRAME_LEN)
|
||||
app.frameIndex = 0;
|
||||
|
||||
KVMFRFrame * fi = lgmpHostMemPtr(app.frameMemory[app.frameIndex]);
|
||||
|
|
Loading…
Add table
Reference in a new issue