[ADVAPI32]

- 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
This commit is contained in:
Thomas Faber 2016-10-01 16:44:21 +00:00
parent cf6ff20079
commit 69ce708392

View 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
{