shell32: Avoid zeroing a buffer that will get overwritten.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8da116d0b7
commit
feac70c1cf
|
@ -1315,9 +1315,10 @@ ISFHelper_fnCopyItems (ISFHelper * iface, IShellFolder * pSFFrom, UINT cidl,
|
|||
|
||||
if (SUCCEEDED (IPersistFolder2_GetCurFolder (ppf2, &pidl))) {
|
||||
SHGetPathFromIDListW (pidl, wszSrcPathRoot);
|
||||
ZeroMemory(wszDstPath, MAX_PATH+1);
|
||||
if (This->sPathTarget)
|
||||
lstrcpynW(wszDstPath, This->sPathTarget, MAX_PATH);
|
||||
else
|
||||
wszDstPath[0] = 0;
|
||||
PathAddBackslashW(wszSrcPathRoot);
|
||||
PathAddBackslashW(wszDstPath);
|
||||
wszSrcPathsList = build_paths_list(wszSrcPathRoot, cidl, apidl);
|
||||
|
|
Loading…
Reference in New Issue