Sync with trunk r58740.
[reactos.git] / drivers / bus / pcix / pci / config.c
index 51b9998..6d676da 100644 (file)
@@ -65,8 +65,7 @@ PciReadWriteConfigSpace(IN PPCI_FDO_EXTENSION DeviceExtension,
     if (PciInterface)
     {
         /* Currently this driver only supports the legacy HAL interface */
-        UNIMPLEMENTED;
-        while (TRUE);
+        UNIMPLEMENTED_DBGBREAK();
     }
     else
     {
@@ -205,12 +204,12 @@ PciQueryForPciBusInterface(IN PPCI_FDO_EXTENSION FdoExtension)
         }
 
         /* Dereference the device object because we took a reference earlier */
-        ObfDereferenceObject(AttachedDevice);
+        ObDereferenceObject(AttachedDevice);
     }
     else
     {
         /* Failure path, dereference the device object and set failure code */
-        if (AttachedDevice) ObfDereferenceObject(AttachedDevice);
+        if (AttachedDevice) ObDereferenceObject(AttachedDevice);
         ExFreePoolWithTag(PciInterface, 0);
         Status = STATUS_INSUFFICIENT_RESOURCES;
     }