mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 16:35:49 +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 */
|
/* Initialize prompt support */
|
||||||
InitPrompt();
|
InitPrompt();
|
||||||
|
|
||||||
#ifdef FEATURE_DIR_STACK
|
#ifdef FEATURE_DIRECTORY_STACK
|
||||||
/* Initialize directory stack */
|
/* Initialize directory stack */
|
||||||
InitDirectoryStack();
|
InitDirectoryStack();
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -184,6 +184,8 @@ BOOL SetRootPath(TCHAR *oldpath, TCHAR *InPath)
|
||||||
TCHAR OutPath[MAX_PATH];
|
TCHAR OutPath[MAX_PATH];
|
||||||
TCHAR OutPathTemp[MAX_PATH];
|
TCHAR OutPathTemp[MAX_PATH];
|
||||||
|
|
||||||
|
StripQuotes(InPath);
|
||||||
|
|
||||||
/* Retrieve the full path name from the (possibly relative) InPath */
|
/* Retrieve the full path name from the (possibly relative) InPath */
|
||||||
if (GetFullPathName(InPath, MAX_PATH, OutPathTemp, NULL) == 0)
|
if (GetFullPathName(InPath, MAX_PATH, OutPathTemp, NULL) == 0)
|
||||||
goto Fail;
|
goto Fail;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue