Skip to content

Commit c87dfeb

Browse files
committed
Fix GetModifiedTimestamp to work with >2GB files on win32 (see 4394654)
1 parent 65b3b8b commit c87dfeb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

renderdoc/os/win32/win32_stringio.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,8 @@ uint64_t GetModifiedTimestamp(const string &filename)
383383
{
384384
wstring wfn = StringFormat::UTF82Wide(filename);
385385

386-
struct _stat st;
387-
int res = _wstat(wfn.c_str(), &st);
386+
struct __stat64 st;
387+
int res = _wstat64(wfn.c_str(), &st);
388388

389389
if(res == 0)
390390
{

0 commit comments

Comments
 (0)