X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=registry.cpp;h=20033f862cb6529f668da182483e5ff0a2036bbc;hb=7f60a4c99c695b229e956a758b4bc29fc84b4ed4;hp=c0ba8f1568b8ad5d0d67a928db0d4355a472ce35;hpb=1ca188026d2d0b9a379cc1588eee314ca96528ab;p=nssm.git diff --git a/registry.cpp b/registry.cpp index c0ba8f1..20033f8 100644 --- a/registry.cpp +++ b/registry.cpp @@ -50,7 +50,7 @@ int create_messages() { } /* Get path of this program */ - const TCHAR *path = nssm_imagepath(); + const TCHAR *path = nssm_unquoted_imagepath(); /* Try to register the module but don't worry so much on failure */ RegSetValueEx(key, _T("EventMessageFile"), 0, REG_SZ, (const unsigned char *) path, (unsigned long) (_tcslen(path) + 1) * sizeof(TCHAR));