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 and Extrems committed Mar 2, 2024
1 parent e70b5d1 commit 96fd4b8
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 @@ -859,7 +859,7 @@ static void __dvd_statebusycb(s32 result)
__dvd_canceling = 0;
block = __dvd_executing;
__dvd_executing = &__dvd_dummycmdblk;
__dvd_executing->state = DVD_STATE_CANCELED;
block->state = DVD_STATE_CANCELED;
if(block->cb) block->cb(DVD_ERROR_CANCELED,block);
if(__dvd_cancelcallback) __dvd_cancelcallback(DVD_ERROR_OK,block);
__dvd_stateready();
Expand Down

0 comments on commit 96fd4b8

Please sign in to comment.