[ros-diffs] [cwittich] 47403: [CRT] fix behavior of _system (fixes msvcrt environ winetest)

cwittich at svn.reactos.org cwittich at svn.reactos.org
Sat May 29 11:23:24 CEST 2010


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.c?rev=47403&r1=47402&r2=47403&view=diff
==============================================================================
--- 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);




More information about the Ros-diffs mailing list