[ros-diffs] [greatlrd] 16653: Make CMD rember startpath when you
change from start drive to another drive.
greatlrd at svn.reactos.com
greatlrd at svn.reactos.com
Wed Jul 20 01:37:01 CEST 2005
Make CMD rember startpath when you change from start drive to another
drive.
Modified: trunk/reactos/subsys/system/cmd/cmd.c
_____
Modified: trunk/reactos/subsys/system/cmd/cmd.c
--- trunk/reactos/subsys/system/cmd/cmd.c 2005-07-19 23:25:50 UTC
(rev 16652)
+++ trunk/reactos/subsys/system/cmd/cmd.c 2005-07-19 23:36:59 UTC
(rev 16653)
@@ -1533,6 +1533,7 @@
int _main (int argc, char *argv[])
#endif
{
+ TCHAR startPath[MAX_PATH];
CONSOLE_SCREEN_BUFFER_INFO Info;
INT nExitCode;
#ifdef _UNICODE
@@ -1544,7 +1545,9 @@
argv = CommandLineToArgvW(GetCommandLineW(), &argc);
#endif
#endif
-
+
+ GetCurrentDirectory(MAX_PATH,startPath);
+ _tchdir(startPath);
SetFileApisToOEM();
InputCodePage= 0;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050720/73692e7d/attachment.html
More information about the Ros-diffs
mailing list