Module: wine Branch: master Commit: 744d53850965306f1a9bb0026c676185af812571 URL: http://source.winehq.org/git/wine.git/?a=commit;h=744d53850965306f1a9bb0026c...
Author: Hugh McMaster hugh.mcmaster@outlook.com Date: Sun Jul 30 10:45:53 2017 +0000
regedit: Pass memcpy() the correct destination address.
Signed-off-by: Hugh McMaster hugh.mcmaster@outlook.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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 e1e8c7f..4c2ec36 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;