[BROWSEUI] Clear pidlLastParsed on CAddressEditBox::Execute (#6183)

Based on KRosUser's gopidlparsed.patch.
Clear pidlLastParsed if necessary.
CORE-19019
This commit is contained in:
Katayama Hirofumi MZ 2023-12-23 08:16:01 +09:00 committed by GitHub
parent 19f3d6bd8d
commit ac1a96477b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -318,8 +318,16 @@ HRESULT STDMETHODCALLTYPE CAddressEditBox::Execute(long paramC)
hr = psf->CompareIDs(0, pidl, pidlLastParsed);
SHFree(pidl);
if (hr == 0)
{
if (pidlLastParsed)
{
ILFree(pidlLastParsed);
pidlLastParsed = NULL;
}
return S_OK;
}
/*
* Attempt to browse to the parsed pidl