From 3da5dcbd9b76660a7e000c3937141b5a232b9fc8 Mon Sep 17 00:00:00 2001 From: Ulf Wohlers Date: Tue, 9 Sep 2003 14:01:06 +0000 Subject: [PATCH] fixed return value of ReadSectors Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1241 --- src/dos/cdrom_ioctl_win32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dos/cdrom_ioctl_win32.cpp b/src/dos/cdrom_ioctl_win32.cpp index 34e0492d..3d15e366 100644 --- a/src/dos/cdrom_ioctl_win32.cpp +++ b/src/dos/cdrom_ioctl_win32.cpp @@ -242,7 +242,7 @@ bool CDROM_Interface_Ioctl::ReadSectors(PhysPt buffer, bool raw, unsigned long s MEM_BlockWrite(buffer,bufdata,buflen); delete[] bufdata; - return (byteCount!=num*RAW_SECTOR_SIZE) && (bStat>0); + return (byteCount==buflen) && (bStat>0); } bool CDROM_Interface_Ioctl::SetDevice(char* path, int forceCD)