We were writing a quoted message source path to the registry.
Stefan and Michael Scherer point out that it should be unquoted.
Thanks to Gerald Haider for noticing that installing a service with NSSM in a\r
path containing spaces was technically a security vulnerability.\r
Thanks to Scott Ware for reporting a crash saving the environment on XP 32-bit.\r
Thanks to Gerald Haider for noticing that installing a service with NSSM in a\r
path containing spaces was technically a security vulnerability.\r
Thanks to Scott Ware for reporting a crash saving the environment on XP 32-bit.\r
+Thanks to Stefan and Michael Scherer for reporting a bug writing the event messages source.\r
}\r
\r
/* Get path of this program */\r
}\r
\r
/* Get path of this program */\r
- const TCHAR *path = nssm_imagepath();\r
+ const TCHAR *path = nssm_unquoted_imagepath();\r
\r
/* Try to register the module but don't worry so much on failure */\r
RegSetValueEx(key, _T("EventMessageFile"), 0, REG_SZ, (const unsigned char *) path, (unsigned long) (_tcslen(path) + 1) * sizeof(TCHAR));\r
\r
/* Try to register the module but don't worry so much on failure */\r
RegSetValueEx(key, _T("EventMessageFile"), 0, REG_SZ, (const unsigned char *) path, (unsigned long) (_tcslen(path) + 1) * sizeof(TCHAR));\r