diff --git a/src/cdrom/cdrom.c b/src/cdrom/cdrom.c index b64ba0129..e72c2f890 100644 --- a/src/cdrom/cdrom.c +++ b/src/cdrom/cdrom.c @@ -9,7 +9,7 @@ * Implementation of the CD-ROM drive with SCSI(-like) * commands, for both ATAPI and SCSI usage. * - * Version: @(#)cdrom.c 1.0.31 2018/02/15 + * Version: @(#)cdrom.c 1.0.32 2018/02/25 * * Author: Miran Grca, * @@ -1923,14 +1923,13 @@ cdrom_readtoc_fallback: b[6] = (MMC_PROFILE_DVD_ROM >> 8) & 0xff; b[7] = MMC_PROFILE_DVD_ROM & 0xff; ret = 1; - } else if (len <= CD_MAX_SECTORS) { + } else { b[6] = (MMC_PROFILE_CD_ROM >> 8) & 0xff; b[7] = MMC_PROFILE_CD_ROM & 0xff; ret = 0; } - } else { + } else ret = 2; - } alloc_length = 8; b += 8; diff --git a/src/win/win_devconf.c b/src/win/win_devconf.c index 4eec1f0e2..c556b82f9 100644 --- a/src/win/win_devconf.c +++ b/src/win/win_devconf.c @@ -8,7 +8,7 @@ * * Windows device configuration dialog implementation. * - * Version: @(#)win_devconf.c 1.0.13 2018/02/23 + * Version: @(#)win_devconf.c 1.0.14 2018/02/25 * * Authors: Sarah Walker, * Miran Grca, @@ -421,7 +421,7 @@ deviceconfig_dlgproc(HWND hdlg, UINT message, WPARAM wParam, LPARAM lParam) } strcat(file_filter, ")|"); d = 0; - while (config->file_filter[c].extensions[d][0]) + while (config->file_filter[c].extensions[d] && config->file_filter[c].extensions[d][0]) { if (d > 0) strcat(file_filter, ";");