projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf6ff20
)
[ADVAPI32]
author
Thomas Faber
<thomas.faber@reactos.org>
Sat, 1 Oct 2016 16:44:21 +0000
(16:44 +0000)
committer
Thomas 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
patch
|
blob
|
history
diff --git
a/reactos/dll/win32/advapi32/reg/reg.c
b/reactos/dll/win32/advapi32/reg/reg.c
index
4ce71e5
..
b5b7deb
100644
(file)
--- a/
reactos/dll/win32/advapi32/reg/reg.c
+++ b/
reactos/dll/win32/advapi32/reg/reg.c
@@
-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
{