]> granicus.if.org Git - apache/commitdiff
A bit more clarity, and that's it for now.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 14 May 2001 04:31:56 +0000 (04:31 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 14 May 2001 04:31:56 +0000 (04:31 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89111 13f79535-47bb-0310-9956-ffa450edef68

support/win32/wintty.c

index 6aad446cb423c4ec217872508f14c0e3396e7017..b3c63c1bb2b1994bff7395b947fd1a86632a0438 100644 (file)
@@ -75,13 +75,13 @@ const char *options =
 "\teven when invoked from within a service (such as the Apache server.)\n"
 "\tAlso reflects the console input back to the stdout stream, allowing\n"
 "\tthe operator to respond to prompts from the context of a service.\n\n"
-"Syntax: %s [opts]\n\n"
+"Syntax: %s [opts] [-t \"Window Title\"]\n\n"
 "  opts: -c{haracter}   or -l{ine} input\n"
 "\t-q{uiet}       or -e{cho} input\n"
 "\t-u{nprocessed} or -p{rocessed} input\n"
 "\t-n{owrap}      or -w{rap} output lines\n"
 "\t-f{ormatted}   or -r{aw} output lines\n"
-"\t-v{erbose} error checking\n"
+"\t-v{erbose} error reporting (for debugging)\n"
 "\t-? for this message\n\n";
 
 HANDLE herrout;
@@ -228,6 +228,9 @@ int main(int argc, char** argv)
             printerr("SetProcWinSta(WinSta0) failed (%d)\n", GetLastError());
         }
        hsavedesk = GetThreadDesktop(GetCurrentThreadId());
+        if (!hsavedesk || hsavedesk == INVALID_HANDLE_VALUE) {
+            printerr("GetThreadDesktop(GetTID()) failed (%d)\n", GetLastError());
+        }
         hdesk = OpenDesktop("Default", 0, TRUE, 
                             DESKTOP_READOBJECTS     
                           | DESKTOP_CREATEWINDOW