Fixed a problem with opening capture files larger than 2gb on windows

This commit is contained in:
Jimmy Lee
2017-09-12 19:55:47 -07:00
committed by Baldur Karlsson
parent 139b122cc4
commit 43946540f1
+2 -2
View File
@@ -531,8 +531,8 @@ bool exists(const char *filename)
{ {
wstring wfn = StringFormat::UTF82Wide(filename); wstring wfn = StringFormat::UTF82Wide(filename);
struct _stat st; struct __stat64 st;
int res = _wstat(wfn.c_str(), &st); int res = _wstat64(wfn.c_str(), &st);
return (res == 0); return (res == 0);
} }