[DHCPCSVC]
authorThomas Faber <thomas.faber@reactos.org>
Sun, 26 Apr 2015 04:52:05 +0000 (04:52 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 26 Apr 2015 04:52:05 +0000 (04:52 +0000)
- Account for null terminator space after RegQueryInfoKey
CORE-6976

svn path=/trunk/; revision=67429

reactos/dll/win32/dhcpcsvc/dhcp/adapter.c

index 5b58ed7..5cd080f 100644 (file)
@@ -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));