Allow relative paths for I/O redirection.
[nssm.git] / io.cpp
diff --git a/io.cpp b/io.cpp
index 501f605..5331188 100644 (file)
--- a/io.cpp
+++ b/io.cpp
@@ -121,7 +121,7 @@ int get_output_handles(HKEY key, STARTUPINFO *si) {
   /* stderr */\r
   if (get_createfile_parameters(key, NSSM_REG_STDERR, path, &sharing, NSSM_STDERR_SHARING, &disposition, NSSM_STDERR_DISPOSITION, &flags, NSSM_STDERR_FLAGS)) return 6;\r
   if (path[0]) {\r
-    /* Same as stdin? */\r
+    /* Same as stdout? */\r
     if (str_equiv(path, stdout_path)) {\r
       /* Two handles to the same file will create a race. */\r
       if (! DuplicateHandle(GetCurrentProcess(), si->hStdOutput, GetCurrentProcess(), &si->hStdError, 0, true, DUPLICATE_SAME_ACCESS)) {\r