Dmitry Timoshkov : advapi32: Add FILE_FLAG_BACKUP_SEMANTICS to the flags passed to CreateFileW to be able to get security information for directories as well as for files .

Alexandre Julliard julliard at wine.codeweavers.com
Fri May 4 07:11:18 CDT 2007


Module: wine
Branch: master
Commit: e79a94d45be2f05d6e1d2366f46eea0fa59b6a95
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e79a94d45be2f05d6e1d2366f46eea0fa59b6a95

Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date:   Fri May  4 16:27:10 2007 +0900

advapi32: Add FILE_FLAG_BACKUP_SEMANTICS to the flags passed to CreateFileW to be able to get security information for directories as well as for files.

---

 dlls/advapi32/security.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/advapi32/security.c b/dlls/advapi32/security.c
index 729727f..126a4ac 100644
--- a/dlls/advapi32/security.c
+++ b/dlls/advapi32/security.c
@@ -1749,7 +1749,7 @@ GetFileSecurityW( LPCWSTR lpFileName,
     NTSTATUS status;
 
     hfile = CreateFileW( lpFileName, GENERIC_READ, FILE_SHARE_READ,
-                         NULL, OPEN_EXISTING, 0, 0 );
+                         NULL, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, 0 );
     if ( hfile == INVALID_HANDLE_VALUE )
         return FALSE;
 




More information about the wine-cvs mailing list