fix errorlevel for type, the r16766 was Brandon Turner patch sorry I forgt menoty his name.

svn path=/trunk/; revision=16776
This commit is contained in:
Magnus Olsen
2005-07-27 01:38:00 +00:00
parent 961df2a275
commit 6ea556e014
+3
View File
@@ -78,6 +78,8 @@ INT cmd_type (LPTSTR cmd, LPTSTR param)
continue;
}
nErrorLevel = 0;
hFile = CreateFile(argv[i],
GENERIC_READ,
FILE_SHARE_READ,NULL,
@@ -97,6 +99,7 @@ INT cmd_type (LPTSTR cmd, LPTSTR param)
NULL);
ConErrPrintf (_T("%s - %s"), argv[i], errmsg);
LocalFree (errmsg);
nErrorLevel = 1;
continue;
}