mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +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
|
@ -29,7 +29,7 @@ Bus_PlugInDevice (
|
|||
NTSTATUS status;
|
||||
ULONG index;
|
||||
WCHAR temp[256];
|
||||
PLIST_ENTRY entry;
|
||||
PLIST_ENTRY entry;
|
||||
|
||||
PAGED_CODE ();
|
||||
|
||||
|
@ -110,13 +110,13 @@ Bus_PlugInDevice (
|
|||
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');
|
||||
|
||||
|
|
Loading…
Reference in a new issue