Ignore:
Timestamp:
Nov 29, 2001, 2:38:51 PM (24 years ago)
Author:
sandervl
Message:

disk fix

File:
1 edited

Legend:

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

    r7474 r7489  
    1 /* $Id: hmdisk.cpp,v 1.30 2001-11-28 23:33:36 phaller Exp $ */
     1/* $Id: hmdisk.cpp,v 1.31 2001-11-29 13:38:51 sandervl 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  
    7469    //\\.\x:                -> length 6
    7570    //\\.\PHYSICALDRIVEn    -> length 18
     
    114109        return ERROR_INVALID_PARAMETER;
    115110    }
     111    if(strncmp(lpFileName,       // "support" for local unc names
     112             "\\\\.\\",
     113             4) == 0)
     114    {
     115        lpFileName+=4;
     116    }
    116117
    117118    //Disable error popus. NT allows an app to open a cdrom/dvd drive without a disk inside
     
    205206    filename[2] = 0;
    206207
    207     //Disable error popups. NT allows an app to open a cdrom/dvd drive without a disk inside
     208    //Disable error popus. NT allows an app to open a cdrom/dvd drive without a disk inside
    208209    //OS/2 fails in that case with error ERROR_NOT_READY
    209210    ULONG oldmode = SetErrorMode(SEM_FAILCRITICALERRORS);
Note: See TracChangeset for help on using the changeset viewer.