Description
reactos-bootcd-0.4.15-dev-6658-g88808ba-x86-gcc-lin-dbg
 "Imagelist no longer valid:" when closing "Edit > Permission" dialog

Several similar bugs where fixed in the past, linked to attempt to access/destroy,... a comctl32 Imagelist object that has been already destroyed.
See : CORE-17295, CORE-17290
Culprit code : dll/win32/aclui/aclui.c (not actually regedit and same problem occurs with W2K3 regedit in ReacrtOS)
Root cause, similar to https://github.com/reactos/reactos/pull/3211
- sp->hiPrincipals is defined as LVSIL_SMALL in ImageList https://git.reactos.org/?p=reactos.git;a=blob;f=dll/win32/aclui/aclui.c;hb=fa4b38d902d13072b7b982a4411a31cb84ab24b3#l1416 :
 - LISTVIEW_NCDestroy calls ImageList_Destroy(infoPtr->himlSmall) : https://git.reactos.org/?p=reactos.git;a=blob;f=dll/win32/comctl32/listview.c;hb=fa4b38d902d13072b7b982a4411a31cb84ab24b3#l10583
 - aclui / DestroySecurityPage calls ImageList_Destroy on sp->hiPrincipals same object, while already destroyed : https://git.reactos.org/?p=reactos.git;a=blob;f=dll/win32/aclui/aclui.c;hb=fa4b38d902d13072b7b982a4411a31cb84ab24b3#l92
 
patch : aclui.patch![]()
Attachments
Issue Links
- blocks
 - 
                    
CORE-18876 regedit: Refactor and improve
-         
 - Untriaged
 
 -         
 
- relates to
 - 
                    
CORE-17290 "Imagelist no longer valid" when going to Internet Settings > Certificate
-         
 - Resolved
 
 -         
 - 
                    
CORE-19301 [Inet] Security : "Imagelist no longer valid" when closing
-         
 - Resolved
 
 -