At CdStreamThread when reading off cd->nSectorsToRead and cd->nSectorOffset use a uint64_t instead of a size_t. Then setup also the OVERLAPPED::OffsetHigh field.
Even though Mod Loader's intentions are to avoid using img files, it doesn't hurt to do such a small change, specially when I'm the only one with access to the CdStreamThread! Thanks to fastman92 for the heads up.
At
CdStreamThread
when reading offcd->nSectorsToRead
andcd->nSectorOffset
use auint64_t
instead of asize_t
. Then setup also theOVERLAPPED::OffsetHigh
field.Even though Mod Loader's intentions are to avoid using img files, it doesn't hurt to do such a small change, specially when I'm the only one with access to the CdStreamThread! Thanks to fastman92 for the heads up.