[ATAPI] Correctly register GUID_DEVINTERFACE_STORAGEPORT interface

IoRegisterDeviceInterface() is taking a PDO as argument.
Otherwise, it is failing with STATUS_INVALID_DEVICE_REQUEST.
This commit is contained in:
Hervé Poussineau
2026-08-03 22:29:57 +02:00
parent d2025ff295
commit ded9969049
+1 -1
View File
@@ -346,7 +346,7 @@ AtaFdoStartDevice(
AtaSetPortRegistryKey(ChanExt, DD_ATA_REG_MAX_TARGET_ID, PortData->MaxTargetId);
Status = IoRegisterDeviceInterface(ChanExt->Common.Self,
Status = IoRegisterDeviceInterface(ChanExt->Pdo,
&GUID_DEVINTERFACE_STORAGEPORT,
NULL,
&ChanExt->StorageInterfaceName);