[ADVAPI32]
authorThomas Faber <thomas.faber@reactos.org>
Sat, 1 Oct 2016 16:44:21 +0000 (16:44 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sat, 1 Oct 2016 16:44:21 +0000 (16:44 +0000)
- Return ERROR_MORE_DATA instead of ERROR_BUFFER_OVERFLOW from RegEnumKeyExW in case the name or class buffer is too small.
CORE-12030 #resolve

svn path=/trunk/; revision=72879

reactos/dll/win32/advapi32/reg/reg.c

index 4ce71e5..b5b7deb 100644 (file)
@@ -2637,7 +2637,7 @@ RegEnumKeyExW(
         {
             if (KeyInfo->Basic.NameLength > NameLength)
             {
-                ErrorCode = ERROR_BUFFER_OVERFLOW;
+                ErrorCode = ERROR_MORE_DATA;
             }
             else
             {
@@ -2653,7 +2653,7 @@ RegEnumKeyExW(
             if (KeyInfo->Node.NameLength > NameLength ||
                 KeyInfo->Node.ClassLength > ClassLength)
             {
-                ErrorCode = ERROR_BUFFER_OVERFLOW;
+                ErrorCode = ERROR_MORE_DATA;
             }
             else
             {