ntdll: Fix NtAccessCheck for NULL, but present SACLs and DACLs.
This commit is contained in:
parent
ebfbec6e5c
commit
a9ffa82c6d
|
@ -1538,9 +1538,9 @@ NtAccessCheck(
|
|||
RtlGetGroupSecurityDescriptor( SecurityDescriptor, &group, &defaulted );
|
||||
sd.group_len = RtlLengthSid( group );
|
||||
RtlGetSaclSecurityDescriptor( SecurityDescriptor, &present, &sacl, &defaulted );
|
||||
sd.sacl_len = (present ? sacl->AclSize : 0);
|
||||
sd.sacl_len = ((present && sacl) ? sacl->AclSize : 0);
|
||||
RtlGetDaclSecurityDescriptor( SecurityDescriptor, &present, &dacl, &defaulted );
|
||||
sd.dacl_len = (present ? dacl->AclSize : 0);
|
||||
sd.dacl_len = ((present && dacl) ? dacl->AclSize : 0);
|
||||
|
||||
wine_server_add_data( req, &sd, sizeof(sd) );
|
||||
wine_server_add_data( req, owner, sd.owner_len );
|
||||
|
|
Loading…
Reference in New Issue