mirror of
https://github.com/reactos/reactos.git
synced 2026-06-09 17:33:50 +08: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:
committed by
GitHub
parent
f038c2339b
commit
1b7732093c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user