(file) Return to ServerProcessWindows.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Service

Diff for /pegasus/src/Service/ServerProcessWindows.cpp between version 1.2 and 1.3

version 1.2, 2005/03/10 23:23:12 version 1.3, 2005/04/04 10:52:27
Line 35 
Line 35 
 //              Tony Fiorentino (fiorentino_tony@emc.com) //              Tony Fiorentino (fiorentino_tony@emc.com)
 //              Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) //              Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)
 //              Steve Hills (steve.hills@ncr.com) //              Steve Hills (steve.hills@ncr.com)
 //              Josephine Eskaline Joyce, IBM (jojustin@in.ibm.com) - Bug#2032  //              Josephine Eskaline Joyce, IBM (jojustin@in.ibm.com) - Bug#2032, 2031
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
Line 272 
Line 272 
  
   strcpy(descriptionname, _server_proc->getDescription());   strcpy(descriptionname, _server_proc->getDescription());
  
   GetModuleFileName(NULL, filename, sizeof(filename));    if(0 != GetModuleFileName(NULL, filename, sizeof(filename)))
     {
   status = pegasus_service.Install(displayname, descriptionname, filename);   status = pegasus_service.Install(displayname, descriptionname, filename);
  
   // Upon success, set home in registry   // Upon success, set home in registry
Line 286 
Line 287 
       pegasus_homepath[strlen(pegasus_homepath)-1] = '\0';       pegasus_homepath[strlen(pegasus_homepath)-1] = '\0';
       _setRegInfo(g_cimservice_home, pegasus_homepath);       _setRegInfo(g_cimservice_home, pegasus_homepath);
     }     }
     }
     else
     {
       status = (Service::ReturnCode) GetLastError();
     }
   return (status == Service::SERVICE_RETURN_SUCCESS) ? true : false;   return (status == Service::SERVICE_RETURN_SUCCESS) ? true : false;
 } }
  
Line 434 
Line 439 
   // Determine the absolute path to the running program   // Determine the absolute path to the running program
   char exe_pathname[_MAX_PATH] = {0};   char exe_pathname[_MAX_PATH] = {0};
   char home_pathname[_MAX_PATH] = {0};   char home_pathname[_MAX_PATH] = {0};
   GetModuleFileName(NULL, exe_pathname, sizeof(exe_pathname));    if(0 != GetModuleFileName(NULL, exe_pathname, sizeof(exe_pathname)))
     {
  
   // Pegasus home search rules:   // Pegasus home search rules:
   // - look in registry (if set)   // - look in registry (if set)
Line 477 
Line 483 
           home.remove(home.size()-1, 1);           home.remove(home.size()-1, 1);
         }         }
     }     }
     }
     return home;     return home;
 } }
  


Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2