Nikolay Sivov : shell32: Fix potential destination buffer overrun.
Alexandre Julliard
julliard at winehq.org
Wed Dec 21 16:53:43 CST 2016
Module: wine
Branch: master
Commit: f7cc41d7ae11e22163bd8b205bb30c43e2b6f7d0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f7cc41d7ae11e22163bd8b205bb30c43e2b6f7d0
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Wed Dec 21 16:00:56 2016 +0300
shell32: Fix potential destination buffer overrun.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 1674ad2..9307b08 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;
More information about the wine-cvs
mailing list