Skip to content

Commit

Permalink
Fixed setting cmdblk state incorrectly on cancels (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
Exortile authored Mar 2, 2024
1 parent cd386dc commit 3797418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libogc/dvd.c
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ static void __dvd_statebusycb(s32 result)
__dvd_canceling = 0;
block = __dvd_executing;
__dvd_executing = &__dvd_dummycmdblk;
__dvd_executing->state = 10;
block->state = 10;
if(block->cb) block->cb(-3,block);
if(__dvd_cancelcallback) __dvd_cancelcallback(0,block);
__dvd_stateready();
Expand Down

0 comments on commit 3797418

Please sign in to comment.