diff --git a/renderdoc/os/win32/win32_stringio.cpp b/renderdoc/os/win32/win32_stringio.cpp index 1eb213b11..2086ec2cd 100644 --- a/renderdoc/os/win32/win32_stringio.cpp +++ b/renderdoc/os/win32/win32_stringio.cpp @@ -531,8 +531,8 @@ bool exists(const char *filename) { wstring wfn = StringFormat::UTF82Wide(filename); - struct _stat st; - int res = _wstat(wfn.c_str(), &st); + struct __stat64 st; + int res = _wstat64(wfn.c_str(), &st); return (res == 0); }