From fb61dce9548aa0f2b8e86a30be900c823ef24c67 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sun, 26 Apr 2015 04:52:05 +0000 Subject: [PATCH] [DHCPCSVC] - Account for null terminator space after RegQueryInfoKey CORE-6976 svn path=/trunk/; revision=67429 --- reactos/dll/win32/dhcpcsvc/dhcp/adapter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/reactos/dll/win32/dhcpcsvc/dhcp/adapter.c b/reactos/dll/win32/dhcpcsvc/dhcp/adapter.c index 5b58ed76465..5cd080f4fa7 100644 --- a/reactos/dll/win32/dhcpcsvc/dhcp/adapter.c +++ b/reactos/dll/win32/dhcpcsvc/dhcp/adapter.c @@ -22,6 +22,7 @@ PCHAR *GetSubkeyNames( PCHAR MainKeyName, PCHAR Append ) { &MaxSubKeys, &MaxSubKeyLen, NULL, NULL, NULL, NULL, NULL, NULL ); + MaxSubKeyLen++; DH_DbgPrint(MID_TRACE,("MaxSubKeys: %d, MaxSubKeyLen %d\n", MaxSubKeys, MaxSubKeyLen)); -- 2.17.1