The checkbox was inverted. If we were replacing the environment, like
srvany does, it was unchecked, suggesting that the environment would be
appended.
TCHAR *env;\r
unsigned long envlen;\r
if (service->env_extralen) {\r
- SendDlgItemMessage(tablist[NSSM_TAB_ENVIRONMENT], IDC_ENVIRONMENT_REPLACE, BM_SETCHECK, BST_CHECKED, 0);\r
env = service->env_extra;\r
envlen = service->env_extralen;\r
}\r
else {\r
env = service->env;\r
envlen = service->envlen;\r
+ if (envlen) SendDlgItemMessage(tablist[NSSM_TAB_ENVIRONMENT], IDC_ENVIRONMENT_REPLACE, BM_SETCHECK, BST_CHECKED, 0);\r
}\r
\r
if (envlen) {\r