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:
parent
bdfef82348
commit
e79a94d45b
|
@ -1749,7 +1749,7 @@ GetFileSecurityW( LPCWSTR lpFileName,
|
||||||
NTSTATUS status;
|
NTSTATUS status;
|
||||||
|
|
||||||
hfile = CreateFileW( lpFileName, GENERIC_READ, FILE_SHARE_READ,
|
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 )
|
if ( hfile == INVALID_HANDLE_VALUE )
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue