Alexandre Julliard : shlwapi: Fixed use of wrong buffer in SHCopyKeyW.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Jan 17 06:37:19 CST 2006
Module: wine
Branch: refs/heads/master
Commit: 37ea1c4659e3d68411982c0e8b25c470db18778b
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=37ea1c4659e3d68411982c0e8b25c470db18778b
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Jan 17 13:34:52 2006 +0100
shlwapi: Fixed use of wrong buffer in SHCopyKeyW.
---
dlls/shlwapi/reg.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/shlwapi/reg.c b/dlls/shlwapi/reg.c
index 15d14f8..d1001b2 100644
--- a/dlls/shlwapi/reg.c
+++ b/dlls/shlwapi/reg.c
@@ -2351,7 +2351,7 @@ DWORD WINAPI SHCopyKeyW(HKEY hKeySrc, LP
{
DWORD dwNameSize = dwMaxKeyLen, dwType, dwLen = dwMaxDataLen;
- dwRet = RegEnumValueW(hKeySrc, i, lpszName, &dwNameSize, NULL, &dwType, buff, &dwLen);
+ dwRet = RegEnumValueW(hKeySrc, i, lpszName, &dwNameSize, NULL, &dwType, lpBuff, &dwLen);
if (!dwRet)
dwRet = SHSetValueW(hKeyDst, NULL, lpszName, dwType, lpBuff, dwLen);
More information about the wine-cvs
mailing list