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
Dmitry Timoshkov
dmitry at codeweavers.com
Fri May 4 02:27:10 CDT 2007
Hello,
as reported in the bug 8269 GetFileSecurity() should be able to return
security information for directories as well as for files.
Changelog:
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;
--
1.5.1.1
More information about the wine-patches
mailing list