Author: tfaber
Date: Thu May 19 10:15:15 2016
New Revision: 71354
URL:
http://svn.reactos.org/svn/reactos?rev=71354&view=rev
Log:
[ACPI]
- Correctly double-null-terminate hardware IDs
CORE-11271 #resolve
Modified:
trunk/reactos/drivers/bus/acpi/acpienum.c
Modified: trunk/reactos/drivers/bus/acpi/acpienum.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/acpi/acpienum.…
==============================================================================
--- trunk/reactos/drivers/bus/acpi/acpienum.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/acpi/acpienum.c [iso-8859-1] Thu May 19 10:15:15 2016
@@ -29,7 +29,7 @@
NTSTATUS status;
ULONG index;
WCHAR temp[256];
- PLIST_ENTRY entry;
+ PLIST_ENTRY entry;
PAGED_CODE ();
@@ -110,13 +110,13 @@
index += swprintf(&temp[index],
L"ACPI\\%hs",
Device->pnp.hardware_id);
- index++;
+ temp[index++] = UNICODE_NULL;
index += swprintf(&temp[index],
L"*%hs",
Device->pnp.hardware_id);
- index++;
- temp[++index] = UNICODE_NULL;
+ temp[index++] = UNICODE_NULL;
+ temp[index++] = UNICODE_NULL;
pdoData->HardwareIDs = ExAllocatePoolWithTag(NonPagedPool, index*sizeof(WCHAR),
'DpcA');