From c87dfebd2e1a8a12c47f4da6967761b268c521bf Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 14 Sep 2017 11:11:44 +0100 Subject: [PATCH] Fix GetModifiedTimestamp to work with >2GB files on win32 (see 43946540) --- 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 e4a5c9cc6..0b1482e64 100644 --- a/renderdoc/os/win32/win32_stringio.cpp +++ b/renderdoc/os/win32/win32_stringio.cpp @@ -383,8 +383,8 @@ uint64_t GetModifiedTimestamp(const string &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); if(res == 0) {