From 43946540f194684499455227c7ed62254628af25 Mon Sep 17 00:00:00 2001 From: Jimmy Lee Date: Tue, 12 Sep 2017 19:55:47 -0700 Subject: [PATCH] Fixed a problem with opening capture files larger than 2gb on windows --- renderdoc/os/win32/win32_stringio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }