Alexandre Julliard : shlwapi: Fixed use of wrong buffer in SHCopyKeyW.
Module: wine Branch: refs/heads/master Commit: 37ea1c4659e3d68411982c0e8b25c470db18778b URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=37ea1c4659e3d68411982c0e... Author: Alexandre Julliard <julliard(a)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);
participants (1)
-
Alexandre Julliard