Call _splitpath with all parameters

This commit is contained in:
OV2 2017-09-11 23:43:52 +02:00
parent 7bd06fda13
commit 2ebe923dfb
1 changed files with 2 additions and 2 deletions

View File

@ -387,8 +387,8 @@ bool S9xMSU1ROMExists(void)
return true;
}
#ifdef UNZIP_SUPPORT
char ext[_MAX_EXT + 1];
_splitpath(Memory.ROMFilename, NULL, NULL, NULL, ext);
char drive[_MAX_DRIVE + 1], dir[_MAX_DIR + 1], def[_MAX_FNAME + 1], ext[_MAX_EXT + 1];
_splitpath(Memory.ROMFilename, drive, dir, def, ext);
if (!strcasecmp(ext, ".msu1"))
return true;