Skip to content

Commit 65b3b8b

Browse files
Jimmy Leebaldurk
authored andcommitted
Fixed a problem with opening capture files larger than 2gb on windows
1 parent 9587cba commit 65b3b8b

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
@@ -531,8 +531,8 @@ bool exists(const char *filename)
531531
{
532532
wstring wfn = StringFormat::UTF82Wide(filename);
533533

534-
struct _stat st;
535-
int res = _wstat(wfn.c_str(), &st);
534+
struct __stat64 st;
535+
int res = _wstat64(wfn.c_str(), &st);
536536

537537
return (res == 0);
538538
}

0 commit comments

Comments
 (0)