Skip to content

Commit 2da4a5f

Browse files
committed
Fix compiling. Thanks to filip.
svn path=/trunk/; revision=20286
1 parent 09a48bf commit 2da4a5f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

reactos/lib/rtl/sd.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,8 @@ RtlGetGroupSecurityDescriptor(PISECURITY_DESCRIPTOR SecurityDescriptor,
425425
* @implemented
426426
*/
427427
NTSTATUS NTAPI
428-
RtlMakeSelfRelativeSD(PISECURITY_DESCRIPTOR AbsSD,
429-
PISECURITY_DESCRIPTOR_RELATIVE RelSD,
428+
RtlMakeSelfRelativeSD(PSECURITY_DESCRIPTOR _AbsSD,
429+
PSECURITY_DESCRIPTOR _RelSD,
430430
PULONG BufferLength)
431431
{
432432
PSID Owner;
@@ -439,7 +439,9 @@ RtlMakeSelfRelativeSD(PISECURITY_DESCRIPTOR AbsSD,
439439
ULONG DaclLength;
440440
ULONG TotalLength;
441441
ULONG_PTR Current;
442-
442+
PISECURITY_DESCRIPTOR AbsSD = (PISECURITY_DESCRIPTOR)_AbsSD;
443+
PISECURITY_DESCRIPTOR_RELATIVE RelSD = (PISECURITY_DESCRIPTOR_RELATIVE)_RelSD;
444+
443445
PAGED_CODE_RTL();
444446

445447
RtlpQuerySecurityDescriptor(AbsSD,
@@ -522,7 +524,7 @@ RtlAbsoluteToSelfRelativeSD(PISECURITY_DESCRIPTOR AbsSD,
522524
return STATUS_BAD_DESCRIPTOR_FORMAT;
523525
}
524526

525-
return RtlMakeSelfRelativeSD(AbsSD, (PISECURITY_DESCRIPTOR_RELATIVE)RelSD, BufferLength);
527+
return RtlMakeSelfRelativeSD(AbsSD, (PSECURITY_DESCRIPTOR)RelSD, BufferLength);
526528
}
527529

528530

0 commit comments

Comments
 (0)