Hugh McMaster : regedit: Pass memcpy() the correct destination address.

Alexandre Julliard julliard at winehq.org
Mon Jul 31 15:06:29 CDT 2017


Module: wine
Branch: master
Commit: 744d53850965306f1a9bb0026c676185af812571
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=744d53850965306f1a9bb0026c676185af812571

Author: Hugh McMaster <hugh.mcmaster at 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 at outlook.com>
Signed-off-by: Alexandre Julliard <julliard at 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;
 




More information about the wine-cvs mailing list