mirror of
https://github.com/winfsp/winfsp.git
synced 2026-10-30 23:12:35 -05:00
sys: IRP_MJ_CREATE
This commit is contained in:
1 parent
9538eea1f1
commit
b21566da04
1 file changed
+3
-2
+3
-2
@@ -258,7 +258,8 @@ static NTSTATUS FspFsvolCreate(
|
||||
/* copy the security descriptor into the request */
|
||||
if (IsAbsoluteSecurityDescriptor)
|
||||
{
|
||||
Result = RtlAbsoluteToSelfRelativeSD(SecurityDescriptor, 0, &SecurityDescriptorSize);
|
||||
Result = RtlAbsoluteToSelfRelativeSD(SecurityDescriptor,
|
||||
Request->Buffer + Request->Req.Create.SecurityDescriptor, &SecurityDescriptorSize);
|
||||
if (!NT_SUCCESS(Result))
|
||||
{
|
||||
FspFileContextDelete(FsContext);
|
||||
@@ -267,7 +268,7 @@ static NTSTATUS FspFsvolCreate(
|
||||
goto exit;
|
||||
}
|
||||
}
|
||||
else
|
||||
else if (IsSelfRelativeSecurityDescriptor)
|
||||
RtlCopyMemory(Request->Buffer + Request->Req.Create.SecurityDescriptor,
|
||||
SecurityDescriptor, SecurityDescriptorSize);
|
||||
|
||||
|
||||
Reference in new issue
Block a user