Author: cwittich Date: Sat May 29 11:23:23 2010 New Revision: 47403
URL: http://svn.reactos.org/svn/reactos?rev=47403&view=rev Log: [CRT] fix behavior of _system (fixes msvcrt environ winetest)
Modified: trunk/reactos/lib/sdk/crt/process/_system.c
Modified: trunk/reactos/lib/sdk/crt/process/_system.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/process/_system... ============================================================================== --- trunk/reactos/lib/sdk/crt/process/_system.c [iso-8859-1] (original) +++ trunk/reactos/lib/sdk/crt/process/_system.c [iso-8859-1] Sat May 29 11:23:23 2010 @@ -35,11 +35,14 @@ // system should return 0 if command is null and the shell is found
if (command == NULL) { - if (szComSpec == NULL) - return 0; - else - return -1; - } + if (szComSpec == NULL) + return 0; + else + return 1; + } + + if (szComSpec == NULL) + return -1;
// should return 127 or 0 ( MS ) if the shell is not found // __set_errno(ENOENT);