ntdll: Fix NtAccessCheck for NULL, but present SACLs and DACLs.

This commit is contained in:
Rob Shearman 2007-10-16 09:49:53 +01:00 committed by Alexandre Julliard
parent ebfbec6e5c
commit a9ffa82c6d
1 changed files with 2 additions and 2 deletions

View File

@ -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 );