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.

This commit is contained in:
Dmitry Timoshkov 2007-05-04 16:27:10 +09:00 committed by Alexandre Julliard
parent bdfef82348
commit e79a94d45b
1 changed files with 1 additions and 1 deletions

View File

@ -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;