mirror of
https://github.com/reactos/reactos.git
synced 2025-05-04 05:03:22 +00:00
[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:
parent
f038c2339b
commit
1b7732093c
2 changed files with 3 additions and 1 deletions
|
@ -1872,7 +1872,7 @@ Initialize(VOID)
|
|||
/* Initialize prompt support */
|
||||
InitPrompt();
|
||||
|
||||
#ifdef FEATURE_DIR_STACK
|
||||
#ifdef FEATURE_DIRECTORY_STACK
|
||||
/* Initialize directory stack */
|
||||
InitDirectoryStack();
|
||||
#endif
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue