Make <name> and <description> optional

This commit is contained in:
NextTurn
2020-07-27 00:00:00 +08:00
committed by Next Turn
parent 1b2365a99a
commit cd951e69df
7 changed files with 15 additions and 15 deletions

View File

@@ -378,7 +378,11 @@ namespace WinSW
username,
password);
sc.SetDescription(descriptor.Description);
string description = descriptor.Description;
if (description.Length != 0)
{
sc.SetDescription(description);
}
SC_ACTION[] actions = descriptor.FailureActions;
if (actions.Length > 0)