Changeset 1647


Ignore:
Timestamp:
Nov 21, 2004, 1:36:39 PM (21 years ago)
Author:
bird
Message:

fixed two drive letter problems.

Location:
trunk/src/emx/src/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/lib/misc/_getdrive.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1646 r1647  
    1111    int rc = __libc_Back_fsDriveDefaultGet(&chDrive);
    1212    if (!rc)
    13         return chDrive;
     13        return chDrive - 'A' + 1;
    1414
    1515    errno = -rc;
  • trunk/src/emx/src/lib/sys/b_fsDriveDefaultSet.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1646 r1647  
    6060     * Change the drive and update the in-unix-tree flags.
    6161     */
    62     ULONG ulDrive = chDrive - (chDrive >= 'A' && chDrive <= 'Z' ? 'A' + 1 : 'a' + 1);
     62    ULONG ulDrive = chDrive - (chDrive >= 'A' && chDrive <= 'Z' ? 'A' - 1 : 'a' - 1);
    6363    FS_SAVE_LOAD();
    6464    rc = DosSetDefaultDisk(ulDrive);
Note: See TracChangeset for help on using the changeset viewer.