[CMD] Unquote string at pushd (#2031)

pushd command of cmd.exe didn't treat the quoted parameter correctly.
- Call StripQuotes in SetRootPath function.
- Fix typo of FEATURE_DIRECTORY_STACK.
This PR will enable "Command Prompt" here. CORE-12150
This commit is contained in:
Katayama Hirofumi MZ 2019-11-15 11:51:58 +09:00 committed by GitHub
parent f038c2339b
commit 1b7732093c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -1872,7 +1872,7 @@ Initialize(VOID)
/* Initialize prompt support */
InitPrompt();
#ifdef FEATURE_DIR_STACK
#ifdef FEATURE_DIRECTORY_STACK
/* Initialize directory stack */
InitDirectoryStack();
#endif

View file

@ -184,6 +184,8 @@ BOOL SetRootPath(TCHAR *oldpath, TCHAR *InPath)
TCHAR OutPath[MAX_PATH];
TCHAR OutPathTemp[MAX_PATH];
StripQuotes(InPath);
/* Retrieve the full path name from the (possibly relative) InPath */
if (GetFullPathName(InPath, MAX_PATH, OutPathTemp, NULL) == 0)
goto Fail;