MoveSessionPointerBackone matching

This commit is contained in:
Dethrace Labs 2025-11-29 10:33:06 +13:00 committed by Dethrace Engineering Department
parent 9cc4e78851
commit 032164e7bb
1 changed files with 4 additions and 3 deletions

View File

@ -1717,9 +1717,10 @@ int MoveSessionPointerBackOne(tU8** pPtr) {
if (*pPtr == gPipe_buffer_oldest && *pPtr != gPipe_record_ptr) {
return 1;
}
if (*pPtr == gPipe_buffer_start) {
*pPtr = gPipe_buffer_working_end;
} else {
if (*pPtr == gPipe_buffer_start) {
*pPtr = gPipe_buffer_working_end;
}
}
*pPtr -= sizeof(tU16);
REPLAY_DEBUG_ASSERT(*(tU16*)*pPtr != 0);