CloseServiceHandle: sanity check (urgent)

Alexander Yaworsky yaworsky at migusoft.ru
Tue Aug 31 06:15:36 CDT 2004


Hello

I just have noticed that iTunes installer crashes when it calls CloseServiceHandle(NULL).
Thank you for correction of my scribble.

ChangeLog:

Sanity check when closing service handle.

Index: dlls/advapi32/service.c
===================================================================
RCS file: /home/wine/wine/dlls/advapi32/service.c,v
retrieving revision 1.48
diff -u -r1.48 service.c
--- dlls/advapi32/service.c 30 Aug 2004 23:57:03 -0000 1.48
+++ dlls/advapi32/service.c 31 Aug 2004 10:48:20 -0000
@@ -93,6 +93,9 @@
 
 static void free_sc_handle( struct sc_handle* handle )
 {
+    if( NULL == handle )
+        return;
+
     switch( handle->htype )
     {
         case SC_HTYPE_MANAGER:




More information about the wine-patches mailing list