From 1e5c3990ea343e193700ce9afe4525af6ed07fd7 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Tue, 7 Feb 2023 05:17:01 -0800 Subject: [PATCH] Use sizeof on DVDDriveInfo --- src/Dolphin/dvd/dvdlow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Dolphin/dvd/dvdlow.c b/src/Dolphin/dvd/dvdlow.c index d91f3030..2f379610 100644 --- a/src/Dolphin/dvd/dvdlow.c +++ b/src/Dolphin/dvd/dvdlow.c @@ -358,9 +358,9 @@ BOOL DVDLowInquiry(DVDDriveInfo* info, DVDLowCallback callback) { StopAtNextInt = FALSE; Callback = callback; __DIRegs[2] = 0x12000000; - __DIRegs[4] = 32; // sizeof(DVDDriveInfo); + __DIRegs[4] = sizeof(DVDDriveInfo); __DIRegs[5] = (u32)info; - __DIRegs[6] = 32; // sizeof(DVDDriveInfo); + __DIRegs[6] = sizeof(DVDDriveInfo); __DIRegs[7] = 3; SetTimeoutAlarm(OSSecondsToTicks(10)); return TRUE;