Use a passed SecurityDescriptor in CreateFileW

Dmitry Timoshkov dmitry at baikal.ru
Thu Apr 22 00:05:01 CDT 2004


Hello,

Changelog:
    Dmitry Timoshkov <dmitry at codeweavers.com>
    Use a passed SecurityDescriptor in CreateFileW.

--- cvs/hq/wine/files/file.c	Thu Apr 22 04:04:34 2004
+++ wine/files/file.c	Thu Apr 22 04:52:06 2004
@@ -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 filen
     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;






More information about the wine-patches mailing list