ntoskrnl: Allow space for the '\0'.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2018-09-13 10:48:58 +01:00 committed by Alexandre Julliard
parent cbbbb70cf2
commit 9f74c00e06
1 changed files with 1 additions and 1 deletions

View File

@ -1353,7 +1353,7 @@ NTSTATUS WINAPI IoSetDeviceInterfaceState( UNICODE_STRING *name, BOOLEAN enable
if (!guid_from_string( (refstr ? refstr : name->Buffer + namelen) - 38, &class ))
return STATUS_INVALID_PARAMETER;
len = strlenW(DeviceClassesW) + 38 + 1 + namelen + 2;
len = strlenW(DeviceClassesW) + 38 + 1 + namelen + 2 + 1;
if (!(path = heap_alloc( len * sizeof(WCHAR) )))
return STATUS_NO_MEMORY;