Author: tfaber
Date: Sat Apr 25 20:34:35 2015
New Revision: 67426
URL:
http://svn.reactos.org/svn/reactos?rev=67426&view=rev
Log:
[ADVAPI32]
- Account for RegQueryInfoKey no longer including the null terminator in
EnumHKCRKey/EnumHKCRValue
CORE-6976
Modified:
trunk/reactos/dll/win32/advapi32/reg/hkcr.c
trunk/reactos/dll/win32/advapi32/reg/reg.c
Modified: trunk/reactos/dll/win32/advapi32/reg/hkcr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/reg/hkc…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/reg/hkcr.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/reg/hkcr.c [iso-8859-1] Sat Apr 25 20:34:35 2015
@@ -711,11 +711,12 @@
goto Exit;
}
+ MaxFallbackSubKeyLen++;
TRACE("Maxfallbacksubkeylen: %d\n", MaxFallbackSubKeyLen);
/* Allocate our buffer */
FallbackSubKeyName = RtlAllocateHeap(
- RtlGetProcessHeap(), 0, (MaxFallbackSubKeyLen + 1) * sizeof(WCHAR));
+ RtlGetProcessHeap(), 0, MaxFallbackSubKeyLen * sizeof(WCHAR));
if (!FallbackSubKeyName)
{
ErrorCode = ERROR_NOT_ENOUGH_MEMORY;
@@ -925,11 +926,12 @@
goto Exit;
}
+ MaxFallbackValueNameLen++;
TRACE("Maxfallbacksubkeylen: %d\n", MaxFallbackValueNameLen);
/* Allocate our buffer */
FallbackValueName = RtlAllocateHeap(
- RtlGetProcessHeap(), 0, (MaxFallbackValueNameLen + 1) * sizeof(WCHAR));
+ RtlGetProcessHeap(), 0, MaxFallbackValueNameLen * sizeof(WCHAR));
if (!FallbackValueName)
{
ErrorCode = ERROR_NOT_ENOUGH_MEMORY;
Modified: trunk/reactos/dll/win32/advapi32/reg/reg.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/reg/reg…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/reg/reg.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/reg/reg.c [iso-8859-1] Sat Apr 25 20:34:35 2015
@@ -3789,7 +3789,6 @@
lpftLastWriteTime->dwHighDateTime = FullInfo->LastWriteTime.u.HighPart;
}
- ErrorCode = ERROR_SUCCESS;
if (lpClass != NULL)
{
if (*lpcClass == 0)