mirror of
https://github.com/reactos/reactos.git
synced 2024-07-05 04:06:22 +00:00
[USERENV]
- Add space for terminator to values returned from RegQueryInfoKey CORE-6976 svn path=/trunk/; revision=67428
This commit is contained in:
parent
bbf3bf51ca
commit
acb27cdc6b
|
@ -340,6 +340,7 @@ SetUserEnvironment(LPVOID *lpEnvironment,
|
|||
}
|
||||
|
||||
/* Allocate buffers */
|
||||
dwMaxValueNameLength++;
|
||||
lpValueName = LocalAlloc(LPTR,
|
||||
dwMaxValueNameLength * sizeof(WCHAR));
|
||||
if (lpValueName == NULL)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue