mirror of
https://github.com/reactos/reactos.git
synced 2025-06-06 09:50:43 +00:00
[ACPI]
- Correctly double-null-terminate hardware IDs CORE-11271 #resolve svn path=/trunk/; revision=71354
This commit is contained in:
parent
63318080ba
commit
407f2e8218
1 changed files with 4 additions and 4 deletions
|
@ -110,13 +110,13 @@ Bus_PlugInDevice (
|
||||||
index += swprintf(&temp[index],
|
index += swprintf(&temp[index],
|
||||||
L"ACPI\\%hs",
|
L"ACPI\\%hs",
|
||||||
Device->pnp.hardware_id);
|
Device->pnp.hardware_id);
|
||||||
index++;
|
temp[index++] = UNICODE_NULL;
|
||||||
|
|
||||||
index += swprintf(&temp[index],
|
index += swprintf(&temp[index],
|
||||||
L"*%hs",
|
L"*%hs",
|
||||||
Device->pnp.hardware_id);
|
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');
|
pdoData->HardwareIDs = ExAllocatePoolWithTag(NonPagedPool, index*sizeof(WCHAR), 'DpcA');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue