mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:26:17 +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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -2103,8 +2103,26 @@ RegQueryInfoKeyW (HKEY hKey,
|
||||||
|
|
||||||
if (lpcbSecurityDescriptor != NULL)
|
if (lpcbSecurityDescriptor != NULL)
|
||||||
{
|
{
|
||||||
/* FIXME */
|
Status = NtQuerySecurityObject(KeyHandle,
|
||||||
*lpcbSecurityDescriptor = 0;
|
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)
|
if (lpftLastWriteTime != NULL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue