1
0
Fork 0

fixed return value of ReadSectors

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1241
This commit is contained in:
Ulf Wohlers 2003-09-09 14:01:06 +00:00
parent 2e3f978afe
commit 3da5dcbd9b

View file

@ -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)