https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ac1a96477ba45d37c8448fc3cf858f7cca6c426f

commit ac1a96477ba45d37c8448fc3cf858f7cca6c426f
Author:     Katayama Hirofumi MZ <katayama.hirofumi...@gmail.com>
AuthorDate: Sat Dec 23 08:16:01 2023 +0900
Commit:     GitHub <nore...@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

Reply via email to