https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d28bbf458ac7dcaa4af2c…
commit d28bbf458ac7dcaa4af2c20d6ce2f557dbc61326
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Thu Oct 5 23:00:08 2023 +0300
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Mon Dec 18 23:14:14 2023 +0200
[ADVAPI32] Fix bugs in RegpCopyTree
---
dll/win32/advapi32/reg/reg.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dll/win32/advapi32/reg/reg.c b/dll/win32/advapi32/reg/reg.c
index 284731628b1..1e06f67a919 100644
--- a/dll/win32/advapi32/reg/reg.c
+++ b/dll/win32/advapi32/reg/reg.c
@@ -546,6 +546,7 @@ RegpCopyTree(IN HKEY hKeySrc,
if (Buffer != NULL)
{
Info.Buffer = Buffer;
+ BufferSize = BufferSizeRequired;
/* try again */
}
else
@@ -672,6 +673,7 @@ RegpCopyTree(IN HKEY hKeySrc,
if (Buffer != NULL)
{
Info.Buffer = Buffer;
+ BufferSize = BufferSizeRequired;
/* try again */
}
else