Changeset 7489 for trunk/src/kernel32/hmdisk.cpp
- Timestamp:
- Nov 29, 2001, 2:38:51 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/hmdisk.cpp
r7474 r7489 1 /* $Id: hmdisk.cpp,v 1.3 0 2001-11-28 23:33:36 phallerExp $ */1 /* $Id: hmdisk.cpp,v 1.31 2001-11-29 13:38:51 sandervl Exp $ */ 2 2 3 3 /* … … 67 67 BOOL HMDeviceDiskClass::FindDevice(LPCSTR lpClassDevName, LPCSTR lpDeviceName, int namelength) 68 68 { 69 // @@@PH70 // this is broken:71 // "\\.\C:" and "C:" is a LOGICAL drive72 // \\.\PHYSICALDRIVEx is a PHYSICAL drive!73 74 69 //\\.\x: -> length 6 75 70 //\\.\PHYSICALDRIVEn -> length 18 … … 114 109 return ERROR_INVALID_PARAMETER; 115 110 } 111 if(strncmp(lpFileName, // "support" for local unc names 112 "\\\\.\\", 113 4) == 0) 114 { 115 lpFileName+=4; 116 } 116 117 117 118 //Disable error popus. NT allows an app to open a cdrom/dvd drive without a disk inside … … 205 206 filename[2] = 0; 206 207 207 //Disable error popu ps. NT allows an app to open a cdrom/dvd drive without a disk inside208 //Disable error popus. NT allows an app to open a cdrom/dvd drive without a disk inside 208 209 //OS/2 fails in that case with error ERROR_NOT_READY 209 210 ULONG oldmode = SetErrorMode(SEM_FAILCRITICALERRORS);
Note:
See TracChangeset
for help on using the changeset viewer.