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

commit a2a063a2823f74b3e751160c75049ca879c6bf22
Author:     Katayama Hirofumi MZ <[email protected]>
AuthorDate: Fri Nov 17 10:11:41 2023 +0900
Commit:     GitHub <[email protected]>
CommitDate: Fri Nov 17 10:11:41 2023 +0900

    [INETCPL] Let image list be automatically deleted (#5892)
    
    Based on KRosUser's inetsec.patch.
    Don't delete the image list because the image list will be automatically 
deleted by the list view.
    CORE-19301
---
 dll/cpl/inetcpl/security.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dll/cpl/inetcpl/security.c b/dll/cpl/inetcpl/security.c
index e11caf1fc3e..91c10765c76 100644
--- a/dll/cpl/inetcpl/security.c
+++ b/dll/cpl/inetcpl/security.c
@@ -275,10 +275,12 @@ static INT_PTR security_on_destroy(secdlg_data * sd)
 
     heap_free(sd->zone_attr);
     heap_free(sd->zones);
+#ifndef __REACTOS__
     if (sd->himages) {
         SendMessageW(sd->hlv, LVM_SETIMAGELIST, LVSIL_NORMAL, 0);
         ImageList_Destroy(sd->himages);
     }
+#endif
 
     security_cleanup_zones(sd);
     SetWindowLongPtrW(sd->hsec, DWLP_USER, 0);

Reply via email to