@@ -201,7 +201,7 @@ LsarQuerySecurityObject(
201
201
PLSAPR_SR_SECURITY_DESCRIPTOR * SecurityDescriptor )
202
202
{
203
203
PLSA_DB_OBJECT DbObject = NULL ;
204
- PSECURITY_DESCRIPTOR RelativeSd = NULL ;
204
+ PISECURITY_DESCRIPTOR_RELATIVE RelativeSd = NULL ;
205
205
PSECURITY_DESCRIPTOR ResultSd = NULL ;
206
206
PLSAPR_SR_SECURITY_DESCRIPTOR SdData = NULL ;
207
207
ACCESS_MASK DesiredAccess = 0 ;
@@ -256,16 +256,16 @@ LsarQuerySecurityObject(
256
256
257
257
/* Invalidate the SD information that was not requested */
258
258
if (!(SecurityInformation & OWNER_SECURITY_INFORMATION ))
259
- (( PISECURITY_DESCRIPTOR ) RelativeSd ) -> Owner = NULL ;
259
+ RelativeSd -> Owner = 0 ;
260
260
261
261
if (!(SecurityInformation & GROUP_SECURITY_INFORMATION ))
262
- (( PISECURITY_DESCRIPTOR ) RelativeSd ) -> Group = NULL ;
262
+ RelativeSd -> Group = 0 ;
263
263
264
264
if (!(SecurityInformation & DACL_SECURITY_INFORMATION ))
265
- (( PISECURITY_DESCRIPTOR ) RelativeSd ) -> Control &= ~SE_DACL_PRESENT ;
265
+ RelativeSd -> Control &= ~SE_DACL_PRESENT ;
266
266
267
267
if (!(SecurityInformation & SACL_SECURITY_INFORMATION ))
268
- (( PISECURITY_DESCRIPTOR ) RelativeSd ) -> Control &= ~SE_SACL_PRESENT ;
268
+ RelativeSd -> Control &= ~SE_SACL_PRESENT ;
269
269
270
270
/* Calculate the required SD size */
271
271
Status = RtlMakeSelfRelativeSD (RelativeSd ,
@@ -298,7 +298,7 @@ LsarQuerySecurityObject(
298
298
}
299
299
300
300
/* Fill the SD data buffer and return it to the caller */
301
- SdData -> Length = RelativeSdSize ;
301
+ SdData -> Length = ResultSdSize ;
302
302
SdData -> SecurityDescriptor = (PBYTE )ResultSd ;
303
303
304
304
* SecurityDescriptor = SdData ;
0 commit comments