[USERENV]

- Add space for terminator to values returned from RegQueryInfoKey
CORE-6976

svn path=/trunk/; revision=67428
This commit is contained in:
Thomas Faber 2015-04-26 04:10:25 +00:00
parent bbf3bf51ca
commit acb27cdc6b
2 changed files with 4 additions and 0 deletions

View file

@ -340,6 +340,7 @@ SetUserEnvironment(LPVOID *lpEnvironment,
}
/* Allocate buffers */
dwMaxValueNameLength++;
lpValueName = LocalAlloc(LPTR,
dwMaxValueNameLength * sizeof(WCHAR));
if (lpValueName == NULL)

View file

@ -89,6 +89,9 @@ CopyKey(HKEY hDstKey,
return FALSE;
}
dwMaxSubKeyNameLength++;
dwMaxValueNameLength++;
DPRINT("dwSubKeys %lu\n", dwSubKeys);
DPRINT("dwMaxSubKeyNameLength %lu\n", dwMaxSubKeyNameLength);
DPRINT("dwValues %lu\n", dwValues);