From cbdee50f29e2d1c44453f7b5ed5d67296f7a16dc Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 13 Jan 2013 14:46:02 +0100 Subject: windows support: fix _wstat misusage I have no idea when or how this broke, but _wstati64() is the function we want anyway (64 bit filesize). Possibly this was a mingw-w64 bug. It's unknown why "wstat()" just doesn't work in this case, as it's not defined by MSDN and could be defined by mingw as it needs. --- osdep/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'osdep/io.c') 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; } -- cgit v1.2.3