fix behavior of _system (fixes msvcrt environ winetest)

svn path=/trunk/; revision=47403
This commit is contained in:
Christoph von Wittich 2010-05-29 09:23:23 +00:00
parent e701f228c2
commit 1d5afb8039

View file

@ -38,9 +38,12 @@ int system(const char *command)
if (szComSpec == NULL)
return 0;
else
return -1;
return 1;
}
if (szComSpec == NULL)
return -1;
// should return 127 or 0 ( MS ) if the shell is not found
// __set_errno(ENOENT);