mirror of
https://github.com/reactos/reactos.git
synced 2025-07-23 02:43:38 +00:00
Make CMD rember startpath when you change from start drive to another drive.
svn path=/trunk/; revision=16653
This commit is contained in:
parent
7928f042c0
commit
f48a391bbd
1 changed files with 4 additions and 1 deletions
|
@ -1533,6 +1533,7 @@ int _main(void)
|
||||||
int _main (int argc, char *argv[])
|
int _main (int argc, char *argv[])
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
TCHAR startPath[MAX_PATH];
|
||||||
CONSOLE_SCREEN_BUFFER_INFO Info;
|
CONSOLE_SCREEN_BUFFER_INFO Info;
|
||||||
INT nExitCode;
|
INT nExitCode;
|
||||||
#ifdef _UNICODE
|
#ifdef _UNICODE
|
||||||
|
@ -1545,6 +1546,8 @@ int _main (int argc, char *argv[])
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
GetCurrentDirectory(MAX_PATH,startPath);
|
||||||
|
_tchdir(startPath);
|
||||||
|
|
||||||
SetFileApisToOEM();
|
SetFileApisToOEM();
|
||||||
InputCodePage= 0;
|
InputCodePage= 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue