mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:53:07 +00:00
[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:
parent
cf6ff20079
commit
69ce708392
1 changed files with 2 additions and 2 deletions
|
@ -2637,7 +2637,7 @@ RegEnumKeyExW(
|
||||||
{
|
{
|
||||||
if (KeyInfo->Basic.NameLength > NameLength)
|
if (KeyInfo->Basic.NameLength > NameLength)
|
||||||
{
|
{
|
||||||
ErrorCode = ERROR_BUFFER_OVERFLOW;
|
ErrorCode = ERROR_MORE_DATA;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -2653,7 +2653,7 @@ RegEnumKeyExW(
|
||||||
if (KeyInfo->Node.NameLength > NameLength ||
|
if (KeyInfo->Node.NameLength > NameLength ||
|
||||||
KeyInfo->Node.ClassLength > ClassLength)
|
KeyInfo->Node.ClassLength > ClassLength)
|
||||||
{
|
{
|
||||||
ErrorCode = ERROR_BUFFER_OVERFLOW;
|
ErrorCode = ERROR_MORE_DATA;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue