1 /* RCS $Id: dchdir.c,v 1.1.1.1 2000-09-22 15:33:27 hr Exp $
7 -- Under DOS change the current drive as well as the current directory.
10 -- Dennis Vadura, dvadura@dmake.wticorp.com
13 -- http://dmake.wticorp.com/
16 -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved.
18 -- This program is NOT free software; you can redistribute it and/or
19 -- modify it under the terms of the Software License Agreement Provided
20 -- in the file <distribution-root>/readme/license.txt.
23 -- Use cvs log to obtain detailed change logs.
37 if (res
!= -1 && path
[1] == ':') {
40 /* we must change the logged drive, since the chdir worked. */
42 reg
.h
.dl
= (*path
& ~0x20) - 'A' + 1;