diff --git a/win32/win32.cpp b/win32/win32.cpp index 2db43056..bcdc5c5e 100644 --- a/win32/win32.cpp +++ b/win32/win32.cpp @@ -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); } diff --git a/win32/wsnes9x.cpp b/win32/wsnes9x.cpp index ed34ef47..be1acce7 100644 --- a/win32/wsnes9x.cpp +++ b/win32/wsnes9x.cpp @@ -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);