mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
shlwapi: Fixed use of wrong buffer in SHCopyKeyW.
This commit is contained in:
parent
b52874e56d
commit
37ea1c4659
1 changed files with 1 additions and 1 deletions
|
@ -2351,7 +2351,7 @@ DWORD WINAPI SHCopyKeyW(HKEY hKeySrc, LPCWSTR lpszSrcSubKey, HKEY hKeyDst, DWORD
|
|||
{
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue