mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[NTOSKRNL]
Fix SepGet*FromDescriptor, returning NULL, when the relative offset is 0. Fixes VMware tools installer. svn path=/trunk/; revision=56356
This commit is contained in:
parent
615239a26b
commit
ebccbcb163
1 changed files with 4 additions and 0 deletions
|
@ -38,6 +38,7 @@ SepGetGroupFromDescriptor(PVOID _Descriptor)
|
|||
if (Descriptor->Control & SE_SELF_RELATIVE)
|
||||
{
|
||||
SdRel = (PISECURITY_DESCRIPTOR_RELATIVE)Descriptor;
|
||||
if (!SdRel->Group) return NULL;
|
||||
return (PSID)((ULONG_PTR)Descriptor + SdRel->Group);
|
||||
}
|
||||
else
|
||||
|
@ -56,6 +57,7 @@ SepGetOwnerFromDescriptor(PVOID _Descriptor)
|
|||
if (Descriptor->Control & SE_SELF_RELATIVE)
|
||||
{
|
||||
SdRel = (PISECURITY_DESCRIPTOR_RELATIVE)Descriptor;
|
||||
if (!SdRel->Owner) return NULL;
|
||||
return (PSID)((ULONG_PTR)Descriptor + SdRel->Owner);
|
||||
}
|
||||
else
|
||||
|
@ -74,6 +76,7 @@ SepGetDaclFromDescriptor(PVOID _Descriptor)
|
|||
if (Descriptor->Control & SE_SELF_RELATIVE)
|
||||
{
|
||||
SdRel = (PISECURITY_DESCRIPTOR_RELATIVE)Descriptor;
|
||||
if (!SdRel->Dacl) return NULL;
|
||||
return (PACL)((ULONG_PTR)Descriptor + SdRel->Dacl);
|
||||
}
|
||||
else
|
||||
|
@ -92,6 +95,7 @@ SepGetSaclFromDescriptor(PVOID _Descriptor)
|
|||
if (Descriptor->Control & SE_SELF_RELATIVE)
|
||||
{
|
||||
SdRel = (PISECURITY_DESCRIPTOR_RELATIVE)Descriptor;
|
||||
if (!SdRel->Sacl) return NULL;
|
||||
return (PACL)((ULONG_PTR)Descriptor + SdRel->Sacl);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue