Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin@cygwin.com
From: "BB" <canofspam@att.net>
Subject: Re: Bug in GUI App WinMain Arguements
Date: Mon, 7 Apr 2003 14:42:08 -0500
Lines: 27
Message-ID: <b6sk9m$30n$1@main.gmane.org>
References: <b6kfnf$nb9$1@main.gmane.org> <OE19Dc41W2ufyWOxbCJ000162eb@hotmail.com> <b6khmq$3mk$1@main.gmane.org> <20030404185413.GA12006@redhat.com>
Reply-To: "BB" <canofspam@att.net>
X-Complaints-To: usenet@main.gmane.org
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

It is.  I think you might have already written it. (From
"winsup/mingw/main.c" -  '$Author: cgf $')

"winsup/cygwin/lib/libcmain.c" doesn't check for a quoted first argument in
the GetCommandLineA() result.

"winsup/mingw/main.c" has a better implementation of main().

BB

"Christopher Faylor" <cgf-rcm@cygwin.com> wrote in message
news:20030404185413.GA12006@redhat.com...
> On Fri, Apr 04, 2003 at 12:08:46PM -0600, BB wrote:
> >I added a call to GetCommadLine() to see what it returns. It correctly
> >quotes the directory with spaces in it, so the caller of WinMain() should
> >easily be able to handle it.  Win95 does too.
>
> Sounds like a really simple patch then.  Looking forward to it.
>
> cgf
> --
> Please use the resources at cygwin.com rather than sending personal email.
> Special for spam email harvesters: send email to aaaspam@sourceware.org
> and be permanently blocked from mailing lists at sources.redhat.com
>




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

