[PATCH 2/2] shell32: Fix potential destination buffer overrun
Nikolay Sivov
nsivov at codeweavers.com
Wed Dec 21 07:00:56 CST 2016
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/shell32/folders.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/shell32/folders.c b/dlls/shell32/folders.c
index 1674ad2eca..9307b08858 100644
--- a/dlls/shell32/folders.c
+++ b/dlls/shell32/folders.c
@@ -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;
--
2.11.0
More information about the wine-patches
mailing list