- Timestamp:
- Oct 29, 2001, 9:08:40 PM (24 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/hmdisk.cpp
r7269 r7270 1 /* $Id: hmdisk.cpp,v 1.2 5 2001-10-29 16:29:33sandervl Exp $ */1 /* $Id: hmdisk.cpp,v 1.26 2001-10-29 20:08:40 sandervl Exp $ */ 2 2 3 3 /* … … 123 123 { 124 124 if(hFile == INVALID_HANDLE_ERROR) { 125 dprintf(("Drive not ready")); 125 126 SetLastError(NO_ERROR); 126 127 pHMHandleData->hHMHandle = 0; //handle lookup fails if this is set to -1 … … 153 154 *(FARPROC *)&drvInfo->SendASPI32Command = GetProcAddress(drvInfo->hInstAspi, "SendASPI32Command"); 154 155 155 if(drvInfo->GetASPI32SupportInfo() == 0) {156 if(drvInfo->GetASPI32SupportInfo() == (SS_FAILED_INIT << 8)) { 156 157 FreeLibrary(drvInfo->hInstAspi); 157 158 drvInfo->hInstAspi = 0; … … 997 998 return FALSE; 998 999 } 999 dprintf(("IOCTL_SCSI_PASS_THROUGH_DIRECT %x ", pPacket->Cdb[0]));1000 dprintf(("IOCTL_SCSI_PASS_THROUGH_DIRECT %x len %x, %x%02x%02x%02x %x%02x", pPacket->Cdb[0], pPacket->DataTransferLength, pPacket->Cdb[2], pPacket->Cdb[3], pPacket->Cdb[4], pPacket->Cdb[5], pPacket->Cdb[7], pPacket->Cdb[8])); 1000 1001 psrb->SRB_BufPointer = (BYTE *)pPacket->DataBuffer; 1001 1002 memcpy(&psrb->CDBByte[0], &pPacket->Cdb[0], 16); … … 1178 1179 dprintf(("%x -> %d", lpBuffer, IsBadWritePtr((LPVOID)lpBuffer, nNumberOfBytesToRead))); 1179 1180 } 1180 else dprintf2(("KERNEL32: HMDeviceDiskClass::ReadFile read %x bytes ", *lpNumberOfBytesRead));1181 else dprintf2(("KERNEL32: HMDeviceDiskClass::ReadFile read %x bytes pos %x", *lpNumberOfBytesRead, SetFilePointer(pHMHandleData, 0, NULL, FILE_CURRENT))); 1181 1182 1182 1183 return bRC; … … 1217 1218 1218 1219 if(ret == -1) { 1219 dprintf(("SetFilePointer failed (error = %d)", GetLastError()));1220 dprintf(("SetFilePointer failed (error = %d)", GetLastError())); 1220 1221 } 1221 1222 return ret; -
trunk/src/kernel32/oslibdos.cpp
r7202 r7270 1 /* $Id: oslibdos.cpp,v 1.8 0 2001-10-25 13:19:05sandervl Exp $ */1 /* $Id: oslibdos.cpp,v 1.81 2001-10-29 20:08:40 sandervl Exp $ */ 2 2 /* 3 3 * Wrappers for OS/2 Dos* API … … 729 729 if(rc) 730 730 { 731 SetLastError(error2WinError(rc)); 732 return -1; 733 } 734 else return newoffset; 731 SetLastError(error2WinError(rc)); 732 return -1; 733 } 734 SetLastError(ERROR_SUCCESS_W); 735 return newoffset; 735 736 } 736 737 //****************************************************************************** … … 742 743 rc = DosDelete(lpszFileName); 743 744 if(rc) { 744 SetLastError(error2WinError(rc));745 return FALSE;745 SetLastError(error2WinError(rc)); 746 return FALSE; 746 747 } 747 748 return TRUE;
Note:
See TracChangeset
for help on using the changeset viewer.