shell32: Remove DeleteCriticalSection on statically initialized CriticalSection.

Jan Zerebecki jan.wine at zerebecki.de
Thu Mar 15 02:27:30 CDT 2007


---
If this patch is rejected from inclusion, please tell me why, as
I would have to ask anyway.

 dlls/shell32/changenotify.c |    2 --
 dlls/shell32/iconcache.c    |    1 -
 2 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/dlls/shell32/changenotify.c b/dlls/shell32/changenotify.c
index 6d528ee..ba6fe38 100644
--- a/dlls/shell32/changenotify.c
+++ b/dlls/shell32/changenotify.c
@@ -178,8 +178,6 @@ void FreeChangeNotifications(void)
         DeleteNode( head );
 
     LeaveCriticalSection(&SHELL32_ChangenotifyCS);
-
-    DeleteCriticalSection(&SHELL32_ChangenotifyCS);
 }
 
 /*************************************************************************
diff --git a/dlls/shell32/iconcache.c b/dlls/shell32/iconcache.c
index 0a7eb6c..8b0b846 100644
--- a/dlls/shell32/iconcache.c
+++ b/dlls/shell32/iconcache.c
@@ -459,7 +459,6 @@ void SIC_Destroy(void)
 	ShellBigIconList = 0;
 
 	LeaveCriticalSection(&SHELL32_SicCS);
-	DeleteCriticalSection(&SHELL32_SicCS);
 }
 
 /*****************************************************************************



More information about the wine-patches mailing list