shell32: Avoid zeroing a buffer that will get overwritten.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2017-08-28 18:13:09 +02:00
parent 8da116d0b7
commit feac70c1cf
1 changed files with 2 additions and 1 deletions

View File

@ -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);