X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Ffs%2Fstat.cpp;h=2419c2990c9bd9353f06e1ddcaf481afae6bb03e;hb=efdd4ab5f33b444d3549543cbaf5372241c9cf73;hp=245dd4ea9e05e4510768343ad8a5ff62a066313f;hpb=e240e074ce15c17d644e378067c2941aefcd5611;p=libs%2Fcore.git diff --git a/source/fs/stat.cpp b/source/fs/stat.cpp index 245dd4e..2419c29 100644 --- a/source/fs/stat.cpp +++ b/source/fs/stat.cpp @@ -2,6 +2,7 @@ #include #include #else +#define _FILE_OFFSET_BITS 64 #include #include #include @@ -87,7 +88,7 @@ Stat Stat::stat(const Path &path) { #ifdef WIN32 HANDLE handle; - handle = CreateFile(path.str().c_str(), 0, FILE_SHARE_READ, 0, OPEN_EXISTING, 0, 0); + handle = CreateFile(path.str().c_str(), 0, FILE_SHARE_READ, 0, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, 0); if(handle==INVALID_HANDLE_VALUE) throw system_error("CreateFile");