mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
[CRT]
fix behavior of _system (fixes msvcrt environ winetest) svn path=/trunk/; revision=47403
This commit is contained in:
parent
e701f228c2
commit
1d5afb8039
1 changed files with 8 additions and 5 deletions
|
@ -35,11 +35,14 @@ int system(const char *command)
|
||||||
// system should return 0 if command is null and the shell is found
|
// system should return 0 if command is null and the shell is found
|
||||||
|
|
||||||
if (command == NULL) {
|
if (command == NULL) {
|
||||||
if (szComSpec == NULL)
|
if (szComSpec == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
else
|
else
|
||||||
return -1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (szComSpec == NULL)
|
||||||
|
return -1;
|
||||||
|
|
||||||
// should return 127 or 0 ( MS ) if the shell is not found
|
// should return 127 or 0 ( MS ) if the shell is not found
|
||||||
// __set_errno(ENOENT);
|
// __set_errno(ENOENT);
|
||||||
|
|
Loading…
Reference in a new issue