- What's the deal with using Iof* and Obf*, Arch?
authorStefan Ginsberg <stefanginsberg@gmail.com>
Wed, 15 Jul 2009 19:40:44 +0000 (19:40 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Wed, 15 Jul 2009 19:40:44 +0000 (19:40 +0000)
svn path=/trunk/; revision=41986

reactos/drivers/filesystems/fastfat/misc.c
reactos/hal/halppc/generic/dma.c
reactos/hal/halx86/generic/dma.c
reactos/ntoskrnl/fsrtl/fastio.c
reactos/ntoskrnl/mm/section.c
reactos/ntoskrnl/se/token.c

index 977da8a..688086a 100644 (file)
@@ -86,7 +86,7 @@ static NTSTATUS VfatLockControl(
 
 Fail:;
    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);
    return Status;
 }
index 0db7c75..e2a4056 100644 (file)
@@ -770,7 +770,7 @@ HalGetAdapter(
    {
       if (!HalpDmaInitializeEisaAdapter(AdapterObject, DeviceDescription))
       {
-         ObfDereferenceObject(AdapterObject);
+         ObDereferenceObject(AdapterObject);
          return NULL;
       }
    }
@@ -817,7 +817,7 @@ HalPutDmaAdapter(
       KeSetEvent(&HalpDmaLock, 0, 0);
    }
 
-   ObfDereferenceObject(AdapterObject);
+   ObDereferenceObject(AdapterObject);
 }
 
 /**
index 1a9f43e..c40d339 100644 (file)
@@ -770,7 +770,7 @@ HalGetAdapter(
    {
       if (!HalpDmaInitializeEisaAdapter(AdapterObject, DeviceDescription))
       {
-         ObfDereferenceObject(AdapterObject);
+         ObDereferenceObject(AdapterObject);
          return NULL;
       }
    }
@@ -817,7 +817,7 @@ HalPutDmaAdapter(
       KeSetEvent(&HalpDmaLock, 0, 0);
    }
 
-   ObfDereferenceObject(AdapterObject);
+   ObDereferenceObject(AdapterObject);
 }
 
 /**
index c5ee913..bd20e5a 100644 (file)
@@ -746,7 +746,7 @@ FsRtlGetFileSize(IN PFILE_OBJECT  FileObject,
         IoStackLocation->Parameters.QueryFile.FileInformationClass = FileStandardInformation;
 
         /* Send the IRP to the related device object */
-        Status = IofCallDriver(DeviceObject,Irp);
+        Status = IoCallDriver(DeviceObject,Irp);
 
         /* Standard DDK IRP result processing */
         if (Status == STATUS_PENDING)
index d9aedb8..5635e8e 100644 (file)
@@ -4427,7 +4427,7 @@ NtExtendSection(IN HANDLE SectionHandle,
 
    if (!(Section->AllocationAttributes & SEC_FILE))
    {
-      ObfDereferenceObject(Section);
+      ObDereferenceObject(Section);
       return STATUS_INVALID_PARAMETER;
    }
 
index c43d5f8..5184b5b 100644 (file)
@@ -2239,7 +2239,7 @@ NtOpenThreadTokenEx(IN HANDLE ThreadHandle,
                                           &ImpersonationLevel);
     if (Token == NULL)
     {
-        ObfDereferenceObject(Thread);
+        ObDereferenceObject(Thread);
         return STATUS_NO_TOKEN;
     }
     
@@ -2247,7 +2247,7 @@ NtOpenThreadTokenEx(IN HANDLE ThreadHandle,
     
     if (ImpersonationLevel == SecurityAnonymous)
     {
-        ObfDereferenceObject(Token);
+        ObDereferenceObject(Token);
         return STATUS_CANT_OPEN_ANONYMOUS;
     }
     
@@ -2267,7 +2267,7 @@ NtOpenThreadTokenEx(IN HANDLE ThreadHandle,
                                            (PVOID*)&Thread, NULL);
         if (!NT_SUCCESS(Status))
         {
-            ObfDereferenceObject(Token);
+            ObDereferenceObject(Token);
             if (OpenAsSelf)
             {
                 PsRestoreImpersonation(PsGetCurrentThread(), &ImpersonationState);
@@ -2278,11 +2278,11 @@ NtOpenThreadTokenEx(IN HANDLE ThreadHandle,
         PrimaryToken = PsReferencePrimaryToken(Thread->ThreadsProcess);
         Status = SepCreateImpersonationTokenDacl(Token, PrimaryToken, &Dacl);
         ASSERT(FALSE);
-        ObfDereferenceObject(PrimaryToken);
-        ObfDereferenceObject(Thread);
+        ObDereferenceObject(PrimaryToken);
+        ObDereferenceObject(Thread);
         if (!NT_SUCCESS(Status))
         {
-            ObfDereferenceObject(Token);
+            ObDereferenceObject(Token);
             if (OpenAsSelf)
             {
                 PsRestoreImpersonation(PsGetCurrentThread(), &ImpersonationState);
@@ -2304,7 +2304,7 @@ NtOpenThreadTokenEx(IN HANDLE ThreadHandle,
         ExFreePool(Dacl);
         if (!NT_SUCCESS(Status))
         {
-            ObfDereferenceObject(Token);
+            ObDereferenceObject(Token);
             if (OpenAsSelf)
             {
                 PsRestoreImpersonation(PsGetCurrentThread(), &ImpersonationState);
@@ -2323,7 +2323,7 @@ NtOpenThreadTokenEx(IN HANDLE ThreadHandle,
                                        PreviousMode, &hToken);
     }
     
-    ObfDereferenceObject(Token);
+    ObDereferenceObject(Token);
     
     if (OpenAsSelf)
     {