Author: tfaber
Date: Sun Apr 26 04:10:25 2015
New Revision: 67428
URL:
http://svn.reactos.org/svn/reactos?rev=67428&view=rev
Log:
[USERENV]
- Add space for terminator to values returned from RegQueryInfoKey
CORE-6976
Modified:
trunk/reactos/dll/win32/userenv/environment.c
trunk/reactos/dll/win32/userenv/registry.c
Modified: trunk/reactos/dll/win32/userenv/environment.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/userenv/environm…
==============================================================================
--- trunk/reactos/dll/win32/userenv/environment.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/userenv/environment.c [iso-8859-1] Sun Apr 26 04:10:25 2015
@@ -340,6 +340,7 @@
}
/* Allocate buffers */
+ dwMaxValueNameLength++;
lpValueName = LocalAlloc(LPTR,
dwMaxValueNameLength * sizeof(WCHAR));
if (lpValueName == NULL)
Modified: trunk/reactos/dll/win32/userenv/registry.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/userenv/registry…
==============================================================================
--- trunk/reactos/dll/win32/userenv/registry.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/userenv/registry.c [iso-8859-1] Sun Apr 26 04:10:25 2015
@@ -89,6 +89,9 @@
return FALSE;
}
+ dwMaxSubKeyNameLength++;
+ dwMaxValueNameLength++;
+
DPRINT("dwSubKeys %lu\n", dwSubKeys);
DPRINT("dwMaxSubKeyNameLength %lu\n", dwMaxSubKeyNameLength);
DPRINT("dwValues %lu\n", dwValues);