mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 17:52:56 +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 */
|
/* Check what kind of request this was */
|
||||||
if (OperationCode == QuerySecurityDescriptor)
|
if (OperationCode == QuerySecurityDescriptor)
|
||||||
{
|
{
|
||||||
DPRINT1("FIXME: Device Query security descriptor UNHANDLED\n");
|
return SeQuerySecurityDescriptorInfo(SecurityInformation,
|
||||||
return STATUS_SUCCESS;
|
SecurityDescriptor,
|
||||||
|
BufferLength,
|
||||||
|
&DeviceObject->SecurityDescriptor);
|
||||||
}
|
}
|
||||||
else if (OperationCode == DeleteSecurityDescriptor)
|
else if (OperationCode == DeleteSecurityDescriptor)
|
||||||
{
|
{
|
||||||
|
@ -1262,8 +1264,16 @@ IopSecurityFile(IN PVOID ObjectBody,
|
||||||
/* Callers usually expect the normalized form */
|
/* Callers usually expect the normalized form */
|
||||||
if (Status == STATUS_BUFFER_OVERFLOW) Status = STATUS_BUFFER_TOO_SMALL;
|
if (Status == STATUS_BUFFER_OVERFLOW) Status = STATUS_BUFFER_TOO_SMALL;
|
||||||
|
|
||||||
/* Return length */
|
_SEH2_TRY
|
||||||
*BufferLength = IoStatusBlock.Information;
|
{
|
||||||
|
/* Return length */
|
||||||
|
*BufferLength = IoStatusBlock.Information;
|
||||||
|
}
|
||||||
|
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||||
|
{
|
||||||
|
Status = _SEH2_GetExceptionCode();
|
||||||
|
}
|
||||||
|
_SEH2_END;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return Status */
|
/* Return Status */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue