shell32: Fix potential destination buffer overrun.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
490ffe7f40
commit
f7cc41d7ae
|
@ -323,7 +323,7 @@ static HRESULT WINAPI IExtractIconW_fnGetIconLocation(IExtractIconW * iface, UIN
|
|||
|
||||
if (SUCCEEDED(hr))
|
||||
{
|
||||
hr = IShellLinkW_GetIconLocation(psl, szIconFile, MAX_PATH, piIndex);
|
||||
hr = IShellLinkW_GetIconLocation(psl, szIconFile, cchMax, piIndex);
|
||||
|
||||
if (SUCCEEDED(hr) && *szIconFile)
|
||||
found = TRUE;
|
||||
|
|
Loading…
Reference in New Issue