From c03d1122145d73fb3f8d22ed6f769c7580d5f47e Mon Sep 17 00:00:00 2001 From: OBattler Date: Sun, 25 Feb 2018 17:14:10 +0100 Subject: [PATCH] Corrected the relative track position in the current subchannel returned by the Windows IOCTL handler. --- src/win/win_cdrom_ioctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win/win_cdrom_ioctl.c b/src/win/win_cdrom_ioctl.c index 9b1e588bb..b07527f2b 100644 --- a/src/win/win_cdrom_ioctl.c +++ b/src/win/win_cdrom_ioctl.c @@ -9,7 +9,7 @@ * Implementation of the CD-ROM host drive IOCTL interface for * Windows using SCSI Passthrough Direct. * - * Version: @(#)cdrom_ioctl.c 1.0.11 2018/02/15 + * Version: @(#)cdrom_ioctl.c 1.0.12 2018/02/25 * * Authors: Sarah Walker, * Miran Grca, @@ -464,7 +464,7 @@ static uint8_t ioctl_getcurrentsubchannel(uint8_t id, uint8_t *b, int msf) b[pos + 1] = (uint8_t)dat; b[pos] = 0; pos += 4; - dat = cdpos - track_address; + dat = cdpos - track_address - 150; b[pos + 3] = (uint8_t)(dat % 75); dat /= 75; b[pos + 2] = (uint8_t)(dat % 60); dat /= 60; b[pos + 1] = (uint8_t)dat;