From: William A. Rowe Jr Date: Mon, 14 May 2001 04:31:56 +0000 (+0000) Subject: A bit more clarity, and that's it for now. X-Git-Tag: 2.0.18~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84ea63d1f076ed22b35308fff3d34af6ae2383af;p=thirdparty%2Fapache%2Fhttpd.git A bit more clarity, and that's it for now. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89111 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/win32/wintty.c b/support/win32/wintty.c index 6aad446cb42..b3c63c1bb2b 100644 --- a/support/win32/wintty.c +++ b/support/win32/wintty.c @@ -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