[PATCH] regedit: Pass memcpy() the correct destination address

Hugh McMaster hugh.mcmaster at outlook.com
Sun Jul 30 05:45:53 CDT 2017


Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
---
 programs/regedit/listview.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/programs/regedit/listview.c b/programs/regedit/listview.c
index e1e8c7f6c3..4c2ec36bb0 100644
--- a/programs/regedit/listview.c
+++ b/programs/regedit/listview.c
@@ -170,7 +170,7 @@ int AddEntryToList(HWND hwndLV, WCHAR *Name, DWORD dwValType, void *ValBuf, DWOR
     if (ValBuf && dwCount)
     {
         linfo->val = heap_xalloc(dwCount);
-        memcpy(&linfo->val, ValBuf, dwCount);
+        memcpy(linfo->val, ValBuf, dwCount);
     }
     else linfo->val = NULL;
 
-- 
2.13.2




More information about the wine-patches mailing list