diff --git a/osdep/io.c b/osdep/io.c index 5531e3ce7c..f6ccbb4f74 100644 --- a/osdep/io.c +++ b/osdep/io.c @@ -87,7 +87,7 @@ void mp_get_converted_argv(int *argc, char ***argv) int mp_stat(const char *path, struct stat *buf) { wchar_t *wpath = mp_from_utf8(NULL, path); - int res = _wstat64(wpath, buf); + int res = _wstati64(wpath, buf); talloc_free(wpath); return res; } diff --git a/osdep/io.h b/osdep/io.h index b69643f0e1..7554b402d4 100644 --- a/osdep/io.h +++ b/osdep/io.h @@ -60,7 +60,7 @@ struct dirent *mp_readdir(DIR *dir); int mp_closedir(DIR *dir); int mp_mkdir(const char *path, int mode); -// NOTE: Stat is not overridden with mp_stat, because MinGW-w64 defines it as +// NOTE: stat is not overridden with mp_stat, because MinGW-w64 defines it as // macro. #define printf(...) mp_printf(__VA_ARGS__)