mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 01:02:22 +00:00
- Handle query security descriptor
- Add SEH protection svn path=/trunk/; revision=42684
This commit is contained in:
parent
b0922201e8
commit
a70df9a883
1 changed files with 14 additions and 4 deletions
|
@ -1107,8 +1107,10 @@ IopSecurityFile(IN PVOID ObjectBody,
|
|||
/* Check what kind of request this was */
|
||||
if (OperationCode == QuerySecurityDescriptor)
|
||||
{
|
||||
DPRINT1("FIXME: Device Query security descriptor UNHANDLED\n");
|
||||
return STATUS_SUCCESS;
|
||||
return SeQuerySecurityDescriptorInfo(SecurityInformation,
|
||||
SecurityDescriptor,
|
||||
BufferLength,
|
||||
&DeviceObject->SecurityDescriptor);
|
||||
}
|
||||
else if (OperationCode == DeleteSecurityDescriptor)
|
||||
{
|
||||
|
@ -1262,8 +1264,16 @@ IopSecurityFile(IN PVOID ObjectBody,
|
|||
/* Callers usually expect the normalized form */
|
||||
if (Status == STATUS_BUFFER_OVERFLOW) Status = STATUS_BUFFER_TOO_SMALL;
|
||||
|
||||
/* Return length */
|
||||
*BufferLength = IoStatusBlock.Information;
|
||||
_SEH2_TRY
|
||||
{
|
||||
/* Return length */
|
||||
*BufferLength = IoStatusBlock.Information;
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
Status = _SEH2_GetExceptionCode();
|
||||
}
|
||||
_SEH2_END;
|
||||
}
|
||||
|
||||
/* Return Status */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue