__getmainargs return int, not void, and on error, it return -1 and let argv untouched...
commit7c474b4da316a203938b3632ae5a87ad78c86776
authorCarlos Montiers <carlos@thefunsouth.com>
Thu, 17 Jul 2014 02:22:05 +0000 (16 22:22 -0400)
committerCarlos Montiers <carlos@thefunsouth.com>
Thu, 17 Jul 2014 02:22:05 +0000 (16 22:22 -0400)
tree06ada6977635b43d9e7537e7e6404fa83d0f3dd3
parentf2ee6b1759af005a060d638676a3e12ab8e42f9d
__getmainargs return int, not void, and on error, it return -1 and let argv untouched, also argc. Added a if checking the result of it.
win32/lib/crt1.c