EventMessageFile should be unquoted.
[nssm.git] / registry.cpp
index c0ba8f1..20033f8 100644 (file)
@@ -50,7 +50,7 @@ int create_messages() {
   }\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