shell32: Don't call comctl32 on unload time if it wasn't used before.

This commit is contained in:
Nikolay Sivov 2013-12-11 08:36:59 +04:00 committed by Alexandre Julliard
parent 58f16ddd4e
commit b5312b70f5
1 changed files with 4 additions and 2 deletions

View File

@ -405,8 +405,10 @@ void SIC_Destroy(void)
if (sic_hdpa) DPA_DestroyCallback(sic_hdpa, sic_free, NULL );
ImageList_Destroy(ShellSmallIconList);
ImageList_Destroy(ShellBigIconList);
if (ShellSmallIconList)
ImageList_Destroy(ShellSmallIconList);
if (ShellBigIconList)
ImageList_Destroy(ShellBigIconList);
LeaveCriticalSection(&SHELL32_SicCS);
DeleteCriticalSection(&SHELL32_SicCS);