Skip to content

Commit 3797418

Browse files
authored
Fixed setting cmdblk state incorrectly on cancels (#168)
1 parent cd386dc commit 3797418

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libogc/dvd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ static void __dvd_statebusycb(s32 result)
842842
__dvd_canceling = 0;
843843
block = __dvd_executing;
844844
__dvd_executing = &__dvd_dummycmdblk;
845-
__dvd_executing->state = 10;
845+
block->state = 10;
846846
if(block->cb) block->cb(-3,block);
847847
if(__dvd_cancelcallback) __dvd_cancelcallback(0,block);
848848
__dvd_stateready();

0 commit comments

Comments
 (0)