Bugs item #2901705, was opened at 2009-11-21 11:58
Message generated for change (Comment added) made by pedroalves
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=865514&aid=2901705&group_id=173455

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: MinGW32CE (arm-wince-mingw32ce
Group: None
Status: Open
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: Ivan Maidanski (ivmai)
Assigned to: Nobody/Anonymous (nobody)
Summary: broken winmain_ce.c?

Initial Comment:
It seems that __mainArgs() in winmain_ce.c produces a bad entry in __argv[] 
when a single argument is passed to the program.
See the test case (which crashes if one arg is passed to it) - to run it on my 
arm box I've created "a.lnk" file containing: 255#"\SDMMC\Temp\a.exe" x

PS. At present, to workaround the bug, I use a third-party WinMain() wrapper 
for main().

----------------------------------------------------------------------

>Comment By: Pedro Alves (pedroalves)
Date: 2009-12-10 10:40

Message:
Your test is borked.  You should be iterating from 0 to argc.

- for (i = 0; argv[i]; i++)
+ for (i = 0; i < argc; i++)
  printf("%s\n", argv[i]);
 return 0;


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=865514&aid=2901705&group_id=173455

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to