Fix crash when invoked with no arguments.

This commit is contained in:
Alberto Massari 2002-11-18 19:42:13 +00:00 committed by Alexandre Julliard
parent dc71624d59
commit 01ac8df263
1 changed files with 2 additions and 2 deletions

View File

@ -17,8 +17,6 @@
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* *
* This version deliberately differs in error handling compared to the
* windows version.
*/ */
/* /*
@ -80,6 +78,8 @@ int main(int argc, char* argv[])
EntryPointA pfEntryPointA; EntryPointA pfEntryPointA;
HMODULE DllHandle=NULL; HMODULE DllHandle=NULL;
if(argc<2)
return 0;
comma=strchr(argv[1],','); comma=strchr(argv[1],',');
if(comma==NULL) if(comma==NULL)
return 0; return 0;