Use a passed SecurityDescriptor in CreateFileW.

This commit is contained in:
Dmitry Timoshkov 2004-04-23 02:40:51 +00:00 committed by Alexandre Julliard
parent 58dcfb6205
commit eb1711bf5e
1 changed files with 4 additions and 1 deletions

View File

@ -55,6 +55,9 @@
#ifdef HAVE_UTIME_H
# include <utime.h>
#endif
#ifdef HAVE_IO_H
# include <io.h>
#endif
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
@ -458,7 +461,7 @@ HANDLE WINAPI CreateFileW( LPCWSTR filename, DWORD access, DWORD sharing,
attr.RootDirectory = 0;
attr.Attributes = OBJ_CASE_INSENSITIVE;
attr.ObjectName = &nameW;
attr.SecurityDescriptor = NULL;
attr.SecurityDescriptor = sa ? sa->lpSecurityDescriptor : NULL;
attr.SecurityQualityOfService = NULL;
if (sa && sa->bInheritHandle) attr.Attributes |= OBJ_INHERIT;