From 859c7ca832ff02cb5a4f27693d7b997034daa42a Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Wed, 16 Feb 2011 23:46:27 +0000 Subject: [PATCH] Strip quotes from directory name. Windows directories aren't allowed to contain quotes so CreateProcess() will fail if the AppDirectory is quoted. Note that it succeeds even if Application itself is quoted as the application plus parameters are interpreted as a command line. --- nssm.h | 1 + nssm.vcproj | 8 ++++---- registry.cpp | 11 +++++++---- registry.h | 2 +- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/nssm.h b/nssm.h index af8380e..602c0c9 100644 --- a/nssm.h +++ b/nssm.h @@ -2,6 +2,7 @@ #define NSSM_H #define _WIN32_WINNT 0x0500 +#include #include #include #include diff --git a/nssm.vcproj b/nssm.vcproj index 4130d2e..b85c1e7 100755 --- a/nssm.vcproj +++ b/nssm.vcproj @@ -76,7 +76,7 @@ />