(VFS) Add codepath for MSVC CDROM code

This commit is contained in:
twinaphex 2019-07-15 06:30:04 +02:00
parent 30c3b1ea9d
commit 7fb8965416
2 changed files with 7 additions and 2 deletions

View File

@ -200,6 +200,11 @@ int64_t retro_vfs_file_seek_internal(libretro_vfs_implementation_file *stream, i
{
/* VC2005 and up have a special 64-bit fseek */
#ifdef ATLEAST_VC2005
#ifdef HAVE_CDROM
if (stream->scheme == VFS_SCHEME_CDROM)
return retro_vfs_file_seek_cdrom(stream, offset, whence);
else
#endif
return _fseeki64(stream->fp, offset, whence);
#elif defined(__CELLOS_LV2__) || defined(_MSC_VER) && _MSC_VER <= 1310
return fseek(stream->fp, (long)offset, whence);

View File

@ -2178,9 +2178,9 @@ bool core_option_manager_get_visible(core_option_manager_t *opt,
size_t idx)
{
if (!opt)
return NULL;
return false;
if (idx >= opt->size)
return NULL;
return false;
return opt->opts[idx].visible;
}