Fix pdo->fdo typo, causing serious errors, ending up driver unloadable at all.

svn path=/trunk/; revision=15862
This commit is contained in:
Aleksey Bragin 2005-06-11 21:29:59 +00:00
parent 6eab0b40a0
commit 8addb6ae11

View file

@ -77,7 +77,7 @@ NTSTATUS STDCALL AddDevice(PDRIVER_OBJECT DriverObject, PDEVICE_OBJECT pdo)
}
// zerofill device extension
DeviceExtension = (POHCI_DEVICE_EXTENSION)pdo->DeviceExtension;
DeviceExtension = (POHCI_DEVICE_EXTENSION)fdo->DeviceExtension;
RtlZeroMemory(DeviceExtension, sizeof(OHCI_DEVICE_EXTENSION));
DeviceExtension->NextDeviceObject = IoAttachDeviceToDeviceStack(fdo, pdo);