mirror of
https://github.com/reactos/reactos.git
synced 2025-08-01 23:53:07 +00:00
RegQueryInfoKeyW returns correct security descriptor size.
svn path=/trunk/; revision=10841
This commit is contained in:
parent
44e5201910
commit
b6a00f0a9a
1 changed files with 21 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: reg.c,v 1.56 2004/09/13 11:41:26 ekohl Exp $
|
||||
/* $Id: reg.c,v 1.57 2004/09/13 14:42:37 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
|
@ -2103,8 +2103,26 @@ RegQueryInfoKeyW (HKEY hKey,
|
|||
|
||||
if (lpcbSecurityDescriptor != NULL)
|
||||
{
|
||||
/* FIXME */
|
||||
*lpcbSecurityDescriptor = 0;
|
||||
Status = NtQuerySecurityObject(KeyHandle,
|
||||
OWNER_SECURITY_INFORMATION |
|
||||
GROUP_SECURITY_INFORMATION |
|
||||
DACL_SECURITY_INFORMATION,
|
||||
NULL,
|
||||
0,
|
||||
lpcbSecurityDescriptor);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
if (lpClass != NULL)
|
||||
{
|
||||
RtlFreeHeap(ProcessHeap,
|
||||
0,
|
||||
FullInfo);
|
||||
}
|
||||
|
||||
ErrorCode = RtlNtStatusToDosError(Status);
|
||||
SetLastError(ErrorCode);
|
||||
return ErrorCode;
|
||||
}
|
||||
}
|
||||
|
||||
if (lpftLastWriteTime != NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue