https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ac1a96477ba45d37c8448…
commit ac1a96477ba45d37c8448fc3cf858f7cca6c426f
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Sat Dec 23 08:16:01 2023 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Sat Dec 23 08:16:01 2023 +0900
[BROWSEUI] Clear pidlLastParsed on CAddressEditBox::Execute (#6183)
Based on KRosUser's gopidlparsed.patch.
Clear pidlLastParsed if necessary.
CORE-19019
---
dll/win32/browseui/addresseditbox.cpp | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/dll/win32/browseui/addresseditbox.cpp
b/dll/win32/browseui/addresseditbox.cpp
index cec978c191e..7eb6581f731 100644
--- a/dll/win32/browseui/addresseditbox.cpp
+++ b/dll/win32/browseui/addresseditbox.cpp
@@ -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