X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Ffs%2Fstat.cpp;h=2419c2990c9bd9353f06e1ddcaf481afae6bb03e;hp=b0267d8771d08586645261b7a775c3a991f16aeb;hb=efdd4ab5f33b444d3549543cbaf5372241c9cf73;hpb=2a3d0cc4d8ef930ed5fc56c480df3c05967489a4 diff --git a/source/fs/stat.cpp b/source/fs/stat.cpp index b0267d8..2419c29 100644 --- a/source/fs/stat.cpp +++ b/source/fs/stat.cpp @@ -88,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");