Huw Davies : ntoskrnl: Allow space for the '\0'.

Alexandre Julliard julliard at winehq.org
Thu Sep 13 15:14:47 CDT 2018


Module: wine
Branch: master
Commit: 9f74c00e069ff0de4be96262f61b93839f8913cd
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=9f74c00e069ff0de4be96262f61b93839f8913cd

Author: Huw Davies <huw at codeweavers.com>
Date:   Thu Sep 13 10:48:58 2018 +0100

ntoskrnl: Allow space for the '\0'.

Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntoskrnl.exe/ntoskrnl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index 804a938..18524af 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -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;




More information about the wine-cvs mailing list