mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 22:23:05 +00:00
- What's the deal with using Iof* and Obf*, Arch?
svn path=/trunk/; revision=41986
This commit is contained in:
parent
29fa9f1dd8
commit
a06a2ab53c
6 changed files with 15 additions and 15 deletions
|
@ -86,7 +86,7 @@ static NTSTATUS VfatLockControl(
|
||||||
|
|
||||||
Fail:;
|
Fail:;
|
||||||
IrpContext->Irp->IoStatus.Status = Status;
|
IrpContext->Irp->IoStatus.Status = Status;
|
||||||
IofCompleteRequest(IrpContext->Irp, (CCHAR)(NT_SUCCESS(Status) ? IO_DISK_INCREMENT : IO_NO_INCREMENT));
|
IoCompleteRequest(IrpContext->Irp, (CCHAR)(NT_SUCCESS(Status) ? IO_DISK_INCREMENT : IO_NO_INCREMENT));
|
||||||
VfatFreeIrpContext(IrpContext);
|
VfatFreeIrpContext(IrpContext);
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
|
@ -770,7 +770,7 @@ HalGetAdapter(
|
||||||
{
|
{
|
||||||
if (!HalpDmaInitializeEisaAdapter(AdapterObject, DeviceDescription))
|
if (!HalpDmaInitializeEisaAdapter(AdapterObject, DeviceDescription))
|
||||||
{
|
{
|
||||||
ObfDereferenceObject(AdapterObject);
|
ObDereferenceObject(AdapterObject);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -817,7 +817,7 @@ HalPutDmaAdapter(
|
||||||
KeSetEvent(&HalpDmaLock, 0, 0);
|
KeSetEvent(&HalpDmaLock, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
ObfDereferenceObject(AdapterObject);
|
ObDereferenceObject(AdapterObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -770,7 +770,7 @@ HalGetAdapter(
|
||||||
{
|
{
|
||||||
if (!HalpDmaInitializeEisaAdapter(AdapterObject, DeviceDescription))
|
if (!HalpDmaInitializeEisaAdapter(AdapterObject, DeviceDescription))
|
||||||
{
|
{
|
||||||
ObfDereferenceObject(AdapterObject);
|
ObDereferenceObject(AdapterObject);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -817,7 +817,7 @@ HalPutDmaAdapter(
|
||||||
KeSetEvent(&HalpDmaLock, 0, 0);
|
KeSetEvent(&HalpDmaLock, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
ObfDereferenceObject(AdapterObject);
|
ObDereferenceObject(AdapterObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -746,7 +746,7 @@ FsRtlGetFileSize(IN PFILE_OBJECT FileObject,
|
||||||
IoStackLocation->Parameters.QueryFile.FileInformationClass = FileStandardInformation;
|
IoStackLocation->Parameters.QueryFile.FileInformationClass = FileStandardInformation;
|
||||||
|
|
||||||
/* Send the IRP to the related device object */
|
/* Send the IRP to the related device object */
|
||||||
Status = IofCallDriver(DeviceObject,Irp);
|
Status = IoCallDriver(DeviceObject,Irp);
|
||||||
|
|
||||||
/* Standard DDK IRP result processing */
|
/* Standard DDK IRP result processing */
|
||||||
if (Status == STATUS_PENDING)
|
if (Status == STATUS_PENDING)
|
||||||
|
|
|
@ -4427,7 +4427,7 @@ NtExtendSection(IN HANDLE SectionHandle,
|
||||||
|
|
||||||
if (!(Section->AllocationAttributes & SEC_FILE))
|
if (!(Section->AllocationAttributes & SEC_FILE))
|
||||||
{
|
{
|
||||||
ObfDereferenceObject(Section);
|
ObDereferenceObject(Section);
|
||||||
return STATUS_INVALID_PARAMETER;
|
return STATUS_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2239,7 +2239,7 @@ NtOpenThreadTokenEx(IN HANDLE ThreadHandle,
|
||||||
&ImpersonationLevel);
|
&ImpersonationLevel);
|
||||||
if (Token == NULL)
|
if (Token == NULL)
|
||||||
{
|
{
|
||||||
ObfDereferenceObject(Thread);
|
ObDereferenceObject(Thread);
|
||||||
return STATUS_NO_TOKEN;
|
return STATUS_NO_TOKEN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2247,7 +2247,7 @@ NtOpenThreadTokenEx(IN HANDLE ThreadHandle,
|
||||||
|
|
||||||
if (ImpersonationLevel == SecurityAnonymous)
|
if (ImpersonationLevel == SecurityAnonymous)
|
||||||
{
|
{
|
||||||
ObfDereferenceObject(Token);
|
ObDereferenceObject(Token);
|
||||||
return STATUS_CANT_OPEN_ANONYMOUS;
|
return STATUS_CANT_OPEN_ANONYMOUS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2267,7 +2267,7 @@ NtOpenThreadTokenEx(IN HANDLE ThreadHandle,
|
||||||
(PVOID*)&Thread, NULL);
|
(PVOID*)&Thread, NULL);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
ObfDereferenceObject(Token);
|
ObDereferenceObject(Token);
|
||||||
if (OpenAsSelf)
|
if (OpenAsSelf)
|
||||||
{
|
{
|
||||||
PsRestoreImpersonation(PsGetCurrentThread(), &ImpersonationState);
|
PsRestoreImpersonation(PsGetCurrentThread(), &ImpersonationState);
|
||||||
|
@ -2278,11 +2278,11 @@ NtOpenThreadTokenEx(IN HANDLE ThreadHandle,
|
||||||
PrimaryToken = PsReferencePrimaryToken(Thread->ThreadsProcess);
|
PrimaryToken = PsReferencePrimaryToken(Thread->ThreadsProcess);
|
||||||
Status = SepCreateImpersonationTokenDacl(Token, PrimaryToken, &Dacl);
|
Status = SepCreateImpersonationTokenDacl(Token, PrimaryToken, &Dacl);
|
||||||
ASSERT(FALSE);
|
ASSERT(FALSE);
|
||||||
ObfDereferenceObject(PrimaryToken);
|
ObDereferenceObject(PrimaryToken);
|
||||||
ObfDereferenceObject(Thread);
|
ObDereferenceObject(Thread);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
ObfDereferenceObject(Token);
|
ObDereferenceObject(Token);
|
||||||
if (OpenAsSelf)
|
if (OpenAsSelf)
|
||||||
{
|
{
|
||||||
PsRestoreImpersonation(PsGetCurrentThread(), &ImpersonationState);
|
PsRestoreImpersonation(PsGetCurrentThread(), &ImpersonationState);
|
||||||
|
@ -2304,7 +2304,7 @@ NtOpenThreadTokenEx(IN HANDLE ThreadHandle,
|
||||||
ExFreePool(Dacl);
|
ExFreePool(Dacl);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
ObfDereferenceObject(Token);
|
ObDereferenceObject(Token);
|
||||||
if (OpenAsSelf)
|
if (OpenAsSelf)
|
||||||
{
|
{
|
||||||
PsRestoreImpersonation(PsGetCurrentThread(), &ImpersonationState);
|
PsRestoreImpersonation(PsGetCurrentThread(), &ImpersonationState);
|
||||||
|
@ -2323,7 +2323,7 @@ NtOpenThreadTokenEx(IN HANDLE ThreadHandle,
|
||||||
PreviousMode, &hToken);
|
PreviousMode, &hToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
ObfDereferenceObject(Token);
|
ObDereferenceObject(Token);
|
||||||
|
|
||||||
if (OpenAsSelf)
|
if (OpenAsSelf)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue