mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 19:26:42 +00:00
[ACPI]
- Skip fixed feature buttons when reporting resources - Terminate the hardware ID list with 2 NULL characters svn path=/trunk/; revision=53461
This commit is contained in:
@@ -92,7 +92,7 @@ Bus_PlugInDevice (
|
||||
L"*%hs",
|
||||
Device->pnp.hardware_id);
|
||||
index++;
|
||||
temp[index] = UNICODE_NULL;
|
||||
temp[++index] = UNICODE_NULL;
|
||||
|
||||
pdoData->HardwareIDs = ExAllocatePool(NonPagedPool, index*sizeof(WCHAR));
|
||||
|
||||
|
||||
@@ -656,6 +656,11 @@ Bus_PDO_QueryResources(
|
||||
ULONG i;
|
||||
ULONGLONG BusNumber;
|
||||
|
||||
if (!DeviceData->AcpiHandle)
|
||||
{
|
||||
return Irp->IoStatus.Status;
|
||||
}
|
||||
|
||||
/* A bus number resource is not included in the list of current resources
|
||||
* for the root PCI bus so we manually query one here and if we find it
|
||||
* we create a resource list and add a bus number descriptor to it */
|
||||
@@ -1103,6 +1108,10 @@ Bus_PDO_QueryResourceRequirements(
|
||||
|
||||
PAGED_CODE ();
|
||||
|
||||
if (!DeviceData->AcpiHandle)
|
||||
{
|
||||
return Irp->IoStatus.Status;
|
||||
}
|
||||
|
||||
/* Get current resources */
|
||||
while (TRUE)
|
||||
|
||||
Reference in New Issue
Block a user