[CMD][SERVMAN][SHELL32][WINSPOOL][ROSAPPS][NTOS:PNP] Fix my build.

This commit is contained in:
Hermès Bélusca-Maïto 2020-08-20 17:47:40 +02:00
parent ec0853ba70
commit 3c722e35b1
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
8 changed files with 23 additions and 17 deletions

View file

@ -409,11 +409,13 @@ INT Batch(LPTSTR fullname, LPTSTR firstword, LPTSTR param, PARSED_COMMAND *Cmd)
/* Perform top-level batch initialization */
if (bTopLevel)
{
TCHAR *dot;
/* Default the top-level batch context type to .BAT */
BatType = BAT_TYPE;
/* If this is a .CMD file, adjust the type */
TCHAR *dot = _tcsrchr(bc->BatchFilePath, _T('.'));
dot = _tcsrchr(bc->BatchFilePath, _T('.'));
if (dot && (!_tcsicmp(dot, _T(".cmd"))))
{
BatType = CMD_TYPE;