Commit 681d2dfd authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

shell32: Check This->sPathTarget before calling get_display_name().

Fix Excel 2010 crashing in get_display_name() when clicking the ribbon bar file tab. The check was removed in 984f608c. Signed-off-by: 's avatarZhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent d5c99877
......@@ -867,8 +867,9 @@ IShellFolder_fnGetDisplayNameOf (IShellFolder2 * iface, LPCITEMIDLIST pidl,
if ((GET_SHGDN_FOR(dwFlags) & SHGDN_FORPARSING) &&
(GET_SHGDN_RELATION(dwFlags) != SHGDN_INFOLDER))
{
get_display_name( pszPath, This->sPathTarget, pidl,
IsEqualCLSID( This->pclsid, &CLSID_UnixFolder ));
if (This->sPathTarget)
get_display_name( pszPath, This->sPathTarget, pidl,
IsEqualCLSID( This->pclsid, &CLSID_UnixFolder ));
} else {
/* pidl has to contain exactly one non null SHITEMID */
hr = E_INVALIDARG;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment