Browse Source

Update ServiceInstaller.cpp

Some very minor changes to this PR
pull/4/head
Adam Ierymenko 4 years ago committed by GitHub
parent
commit
e1a3285273
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      windows/ZeroTierOne/ServiceInstaller.cpp

6
windows/ZeroTierOne/ServiceInstaller.cpp

@ -54,7 +54,7 @@ std::string InstallService(PSTR pszServiceName,
SC_HANDLE schSCManager = NULL;
SC_HANDLE schService = NULL;
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)
{
@ -98,9 +98,7 @@ std::string InstallService(PSTR pszServiceName,
// Setup service description
sd.lpDescription = szDesc;
if (!ChangeServiceConfig2(schService, SERVICE_CONFIG_DESCRIPTION, &sd)) {
ret = "CreateService failed (description)";
}
ChangeServiceConfig2(schService, SERVICE_CONFIG_DESCRIPTION, &sd);
Cleanup:
// Centralized cleanup for all allocated resources.
if (schSCManager)

Loading…
Cancel
Save