httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apache-1.3/src/os/win32 service.c
Date Tue, 27 Feb 2001 06:53:08 GMT
wrowe       01/02/26 22:53:08

  Modified:    src/os/win32 service.c
  Log:
    One more notable exception to escape.
  
  Revision  Changes    Path
  1.47      +5 -1      apache-1.3/src/os/win32/service.c
  
  Index: service.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/os/win32/service.c,v
  retrieving revision 1.46
  retrieving revision 1.47
  diff -u -r1.46 -r1.47
  --- service.c	2001/02/27 06:39:32	1.46
  +++ service.c	2001/02/27 06:53:08	1.47
  @@ -664,7 +664,7 @@
       argc += 2;
   
       /* Use the name of the service as the error log marker */
  -	ap_server_argv0 = globdat.name;
  +    ap_server_argv0 = globdat.name;
   
       globdat.exit_status = globdat.main_fn( argc, argv );
   }
  @@ -748,6 +748,10 @@
           return;
       ChangeServiceDescription = (CSD_T) GetProcAddress(hwin2000scm, 
                                                         "ChangeServiceConfig2A");
  +    if (!ChangeServiceDescription) {
  +        FreeLibrary(hwin2000scm);
  +        return;
  +    }
       schSCManager = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS);
       if (schSCManager) {
           SC_HANDLE schService = OpenService(schSCManager, globdat.name,
  
  
  

Mime
View raw message