From bae429332d6847e4fb72b3fa911221fd0137f318 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 2086ec2cd..17cb754dc 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) {