Browse Source

Update ServiceInstaller.cpp

Some very minor changes to this PR
Adam Ierymenko 3 years ago
parent
commit
e1a3285273
1 changed files with 2 additions and 4 deletions
  1. 2 4
      windows/ZeroTierOne/ServiceInstaller.cpp

+ 2 - 4
windows/ZeroTierOne/ServiceInstaller.cpp

@@ -54,7 +54,7 @@ std::string InstallService(PSTR pszServiceName,
     SC_HANDLE schSCManager = NULL;
     SC_HANDLE schSCManager = NULL;
     SC_HANDLE schService = NULL;
     SC_HANDLE schService = NULL;
     SERVICE_DESCRIPTION sd;
     SERVICE_DESCRIPTION sd;
-    LPTSTR szDesc = TEXT("Provides secure encrypted communications between hosts over an insecure networks.");
+    LPTSTR szDesc = TEXT("ZeroTier network virtualization service.");
 
 
     if (GetModuleFileName(NULL, szPathTmp, ARRAYSIZE(szPath)) == 0)
     if (GetModuleFileName(NULL, szPathTmp, ARRAYSIZE(szPath)) == 0)
     {
     {
@@ -98,9 +98,7 @@ std::string InstallService(PSTR pszServiceName,
 
 
     // Setup service description
     // Setup service description
     sd.lpDescription = szDesc;
     sd.lpDescription = szDesc;
-    if (!ChangeServiceConfig2(schService, SERVICE_CONFIG_DESCRIPTION, &sd)) {
-        ret = "CreateService failed (description)";
-    }
+    ChangeServiceConfig2(schService, SERVICE_CONFIG_DESCRIPTION, &sd);
 Cleanup:
 Cleanup:
     // Centralized cleanup for all allocated resources.
     // Centralized cleanup for all allocated resources.
     if (schSCManager)
     if (schSCManager)