X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fio%2Fwindows%2Ffile.cpp;h=51fe814a5e29b197f8843d3f4ae1d31653718297;hb=292aed8e23ea543b089d5f2a73000de4640befe7;hp=f6943adb3cb397cf3be67c8f76f4a9989cd9a2d2;hpb=ea8bf8f588310b0d7fd3297d74907602705bba1d;p=libs%2Fcore.git diff --git a/source/io/windows/file.cpp b/source/io/windows/file.cpp index f6943ad..51fe814 100644 --- a/source/io/windows/file.cpp +++ b/source/io/windows/file.cpp @@ -38,7 +38,7 @@ void File::platform_init(const string &fn, CreateMode cm) sec_attr.lpSecurityDescriptor = 0; sec_attr.bInheritHandle = !!(mode&M_INHERIT); - *handle = CreateFile(fn.c_str(), flags, share_flags, 0, create_flags, FILE_ATTRIBUTE_NORMAL, 0); + *handle = CreateFile(fn.c_str(), flags, share_flags, 0, create_flags, FILE_ATTRIBUTE_NORMAL, &sec_attr); if(!handle) { int err = GetLastError();