- Timestamp:
- Jul 28, 2002, 5:38:09 PM (23 years ago)
- Location:
- trunk/src/wnaspi32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wnaspi32/cdio.cpp
r8601 r8931 125 125 char pszDisk[4]; 126 126 127 if(SRB_HaId != 0 && SRB_Target != 0 || SRB_Lun> (nrCDROMDrives - 1)) {127 if(SRB_HaId != 0 || SRB_Lun != 0 || SRB_Target > (nrCDROMDrives - 1)) { 128 128 return (HCDIO) -1; 129 129 } 130 130 131 if(hCDHandles[SRB_ Lun]) {132 return hCDHandles[SRB_ Lun];133 } 134 pszDisk[0] = 'A' + ulCDDriveNr[SRB_ Lun];131 if(hCDHandles[SRB_Target]) { 132 return hCDHandles[SRB_Target]; 133 } 134 pszDisk[0] = 'A' + ulCDDriveNr[SRB_Target]; 135 135 pszDisk[1] = ':'; 136 136 pszDisk[2] = 0; … … 150 150 ulCDSig == (('C') | ('D' << 8) | ('0' << 16) | ('1' << 24)) ) 151 151 { 152 hCDHandles[SRB_ Lun] = hDisk;152 hCDHandles[SRB_Target] = hDisk; 153 153 return (HCDIO)hDisk; 154 154 } -
trunk/src/wnaspi32/winaspi32.cpp
r8601 r8931 1 /* $Id: winaspi32.cpp,v 1.1 4 2002-06-08 11:42:02sandervl Exp $ */1 /* $Id: winaspi32.cpp,v 1.15 2002-07-28 15:38:09 sandervl Exp $ */ 2 2 /* 3 3 * WNASPI routines … … 179 179 if(hCDIO == -1) { 180 180 dprintf(("Failed: invalid device %d %d %d", lpPRB->SRB_HaId, lpPRB->SRB_Target, lpPRB->SRB_Lun)); 181 ASPI_DebugPrintCmd(lpPRB); 181 182 return WNASPI32_DoPosting( lpPRB, SS_NO_DEVICE ); 182 183 }
Note:
See TracChangeset
for help on using the changeset viewer.