From 744d53850965306f1a9bb0026c676185af812571 Mon Sep 17 00:00:00 2001 From: Hugh McMaster Date: Sun, 30 Jul 2017 10:45:53 +0000 Subject: [PATCH] regedit: Pass memcpy() the correct destination address. Signed-off-by: Hugh McMaster Signed-off-by: Alexandre Julliard --- 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 e1e8c7f6c3f..4c2ec36bb00 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;