[HDAUDBUS_NEW] Fix PCI Bus interface version used for WdfFdoQueryForInterface()

Use hardcoded value '1' instead of predefined 'PCI_BUS_INTERFACE_STANDARD_VERSION', as in the current upstream.
Import upstream commit https://github.com/coolstar/sklhdaudbus/commit/4c92e71ef9e91360cb35be6a09aadb2c3eaaca27.
According to the note from CoolStar, that defined value is different on Windows 11, so it causes some problems and '1' should be used instead.
Missed that during the import before.
Addendum to 7c2d923007.
This commit is contained in:
Oleg Dubinskiy
2026-02-23 15:17:38 +01:00
parent 08eddb2736
commit 8aed778a96
+1 -1
View File
@@ -227,7 +227,7 @@ Fdo_EvtDevicePrepareHardware(
SklHdAudBusPrint(DEBUG_LEVEL_INFO, DBG_INIT,
"%s\n", __func__);
status = WdfFdoQueryForInterface(Device, &GUID_BUS_INTERFACE_STANDARD, (PINTERFACE)&fdoCtx->BusInterface, sizeof(BUS_INTERFACE_STANDARD), PCI_BUS_INTERFACE_STANDARD_VERSION, NULL);
status = WdfFdoQueryForInterface(Device, &GUID_BUS_INTERFACE_STANDARD, (PINTERFACE)&fdoCtx->BusInterface, sizeof(BUS_INTERFACE_STANDARD), 1, NULL);
if (!NT_SUCCESS(status)) {
return status;
}