https://git.reactos.org/?p=reactos.git;a=commitdiff;h=11ffa31155ee3ddedc5b3…
commit 11ffa31155ee3ddedc5b3d4a00dd39b97e517484
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Fri Jan 3 17:13:17 2020 +0100
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Fri Jun 4 09:15:55 2021 +0200
[BROWSEUI] Fix broken code
---
dll/win32/browseui/desktopipc.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dll/win32/browseui/desktopipc.cpp b/dll/win32/browseui/desktopipc.cpp
index 4ea4837f8d3..152ae050eb8 100644
--- a/dll/win32/browseui/desktopipc.cpp
+++ b/dll/win32/browseui/desktopipc.cpp
@@ -454,7 +454,7 @@ extern "C" IEThreadParamBlock *WINAPI
SHCreateIETHREADPARAM(
TRACE("SHCreateIETHREADPARAM\n");
- result = (IEThreadParamBlock *) LocalAlloc(LMEM_ZEROINIT, 256);
+ result = (IEThreadParamBlock *) LocalAlloc(LMEM_ZEROINIT, sizeof(*result));
if (result == NULL)
return NULL;
result->offset0 = param8;
@@ -477,10 +477,10 @@ extern "C" IEThreadParamBlock *WINAPI
SHCloneIETHREADPARAM(IEThreadParamBlock *p
TRACE("SHCloneIETHREADPARAM\n");
- result = (IEThreadParamBlock *) LocalAlloc(LMEM_FIXED, 256);
+ result = (IEThreadParamBlock *) LocalAlloc(LMEM_FIXED, sizeof(*result));
if (result == NULL)
return NULL;
- memcpy(result, param, 0x40 * 4);
+ *result = *param;
if (result->directoryPIDL != NULL)
result->directoryPIDL = ILClone(result->directoryPIDL);
if (result->offset7C != NULL)