Ignore:
Timestamp:
Apr 16, 2002, 2:21:04 AM (23 years ago)
Author:
bird
Message:

Buffer cdrom drive letters in OSLibGetDriveType.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/oslibdos.cpp

    r8263 r8273  
    1 /* $Id: oslibdos.cpp,v 1.99 2002-04-13 07:47:24 bird Exp $ */
     1/* $Id: oslibdos.cpp,v 1.100 2002-04-16 00:21:04 bird Exp $ */
    22/*
    33 * Wrappers for OS/2 Dos* API
     
    27232723    /*
    27242724     * Optimize floppy queries for A: and B:.
    2725      * (I don't hope these are any subject of change.)
     2725     * (These aren't currently a subject of change.)
    27262726     */
    27272727    static ULONG ulFloppyMask = 0;
     
    27292729        return DRIVE_REMOVABLE_W;
    27302730
     2731    /*
     2732     * Optimize for CDROM requests.
     2733     * (These aren't currently a subject of change.)
     2734     */
     2735    static ULONG ulCDROMMask = 0;
     2736    if (ulCDROMMask & (1 << ulDrive))
     2737        return DRIVE_CDROM_W;
    27312738
    27322739    /*
     
    28772884    }
    28782885    else if (bpb.fsDeviceAttr & CDType)
     2886    {
    28792887        ulDriveType = DRIVE_CDROM_W;
     2888        /* update cdrom cache */
     2889        ulCDROMMask |= 1 << ulDrive;
     2890    }
    28802891    else if (bpb.fsDeviceAttr & LanType)
    28812892        ulDriveType = DRIVE_REMOTE_W;
Note: See TracChangeset for help on using the changeset viewer.