mirror of
https://github.com/reactos/reactos.git
synced 2024-10-04 08:25:53 +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 */
|
/* Allocate buffers */
|
||||||
|
dwMaxValueNameLength++;
|
||||||
lpValueName = LocalAlloc(LPTR,
|
lpValueName = LocalAlloc(LPTR,
|
||||||
dwMaxValueNameLength * sizeof(WCHAR));
|
dwMaxValueNameLength * sizeof(WCHAR));
|
||||||
if (lpValueName == NULL)
|
if (lpValueName == NULL)
|
||||||
|
|
|
@ -89,6 +89,9 @@ CopyKey(HKEY hDstKey,
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dwMaxSubKeyNameLength++;
|
||||||
|
dwMaxValueNameLength++;
|
||||||
|
|
||||||
DPRINT("dwSubKeys %lu\n", dwSubKeys);
|
DPRINT("dwSubKeys %lu\n", dwSubKeys);
|
||||||
DPRINT("dwMaxSubKeyNameLength %lu\n", dwMaxSubKeyNameLength);
|
DPRINT("dwMaxSubKeyNameLength %lu\n", dwMaxSubKeyNameLength);
|
||||||
DPRINT("dwValues %lu\n", dwValues);
|
DPRINT("dwValues %lu\n", dwValues);
|
||||||
|
|
Loading…
Reference in a new issue