Ignore:
Timestamp:
Nov 29, 2001, 12:33:37 AM (24 years ago)
Author:
phaller
Message:

Fixes in HandleManager and Device Handlers

File:
1 edited

Legend:

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

    r7457 r7474  
    1 /* $Id: hmdisk.cpp,v 1.29 2001-11-26 14:54:01 sandervl Exp $ */
     1/* $Id: hmdisk.cpp,v 1.30 2001-11-28 23:33:36 phaller Exp $ */
    22
    33/*
     
    6767BOOL HMDeviceDiskClass::FindDevice(LPCSTR lpClassDevName, LPCSTR lpDeviceName, int namelength)
    6868{
     69  // @@@PH
     70  // this is broken:
     71  // "\\.\C:" and "C:" is a LOGICAL drive
     72  // \\.\PHYSICALDRIVEx is a PHYSICAL drive!
     73 
    6974    //\\.\x:                -> length 6
    7075    //\\.\PHYSICALDRIVEn    -> length 18
     
    109114        return ERROR_INVALID_PARAMETER;
    110115    }
    111     if(strncmp(lpFileName,       // "support" for local unc names
    112              "\\\\.\\",
    113              4) == 0)
    114     {
    115         lpFileName+=4;
    116     }
    117116
    118117    //Disable error popus. NT allows an app to open a cdrom/dvd drive without a disk inside
     
    206205    filename[2] = 0;
    207206
    208     //Disable error popus. NT allows an app to open a cdrom/dvd drive without a disk inside
     207    //Disable error popups. NT allows an app to open a cdrom/dvd drive without a disk inside
    209208    //OS/2 fails in that case with error ERROR_NOT_READY
    210209    ULONG oldmode = SetErrorMode(SEM_FAILCRITICALERRORS);
Note: See TracChangeset for help on using the changeset viewer.