__getmainargs return int, not void, and on error, it return -1 and let argv untouched...
authorCarlos Montiers <carlos@thefunsouth.com>
Thu, 17 Jul 2014 02:22:05 +0000 (22:22 -0400)
committerCarlos Montiers <carlos@thefunsouth.com>
Thu, 17 Jul 2014 02:22:05 +0000 (22:22 -0400)
commit7c474b4da316a203938b3632ae5a87ad78c86776
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