Revert r19346.
Modified: branches/cache_manager_rewrite/reactos/subsys/system/cmd/cmd.c

Modified: branches/cache_manager_rewrite/reactos/subsys/system/cmd/cmd.c
--- branches/cache_manager_rewrite/reactos/subsys/system/cmd/cmd.c	2005-11-19 18:53:38 UTC (rev 19346)
+++ branches/cache_manager_rewrite/reactos/subsys/system/cmd/cmd.c	2005-11-19 18:55:00 UTC (rev 19347)
@@ -1308,11 +1308,11 @@
 			{
 				UINT envNameLen;
 				LPCTSTR envVal = GetParsedEnvVar ( ip, &envNameLen, bModeSetA );
-				if ( envVal )
-				{
-					ip += envNameLen;
-					cp = _stpcpy ( cp, envVal );
-				}
+				if ( !envVal )
+					return 1;
+				ip += envNameLen;
+				cp = _stpcpy ( cp, envVal );
+				continue;
 			}
 
 			if (_istcntrl (*ip))