From 3797418391fb42c404f0367894abddee46326082 Mon Sep 17 00:00:00 2001 From: Sten-Kristjan Prantsu <70631831+Exortile@users.noreply.github.com> Date: Sat, 2 Mar 2024 04:25:32 -0500 Subject: [PATCH] Fixed setting cmdblk state incorrectly on cancels (#168) --- libogc/dvd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libogc/dvd.c b/libogc/dvd.c index c806c7c8..55a4035c 100644 --- a/libogc/dvd.c +++ b/libogc/dvd.c @@ -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();