mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
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
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue