Win32: fix unicode snapshot loading

This commit is contained in:
OV2 2011-05-06 01:19:30 +02:00
parent 107b2ef921
commit df37799e49
2 changed files with 2 additions and 2 deletions

View File

@ -385,7 +385,7 @@ const char *S9xGetFilenameInc (const char *e, enum s9x_getdirtype dirtype)
do {
_snprintf(filename, sizeof(filename), "%s\\%s%03d%s", d, fname, i, e);
i++;
} while(_access (filename, 0) == 0 && i!=0);
} while(_taccess (_tFromChar(filename), 0) == 0 && i!=0);
return (filename);
}

View File

@ -3511,7 +3511,7 @@ void FreezeUnfreeze (int slot, bool8 freeze)
{
for(int zmv = 0; zmv <= 1; zmv++)
{
if((!oldDir && !zmv) || (!freeze && _access (filename, 0) != 0 && slot < 10))
if((!oldDir && !zmv) || (!freeze && _taccess (_tFromChar(filename), 0) != 0 && slot < 10))
{
if(!zmv)
sprintf (ext, ".%03d", slot);