Changeset 11266 in vbox for trunk/src/VBox/Devices/Storage/DrvHostDVD.cpp
- Timestamp:
- Aug 8, 2008 4:14:51 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvHostDVD.cpp
r9330 r11266 162 162 if (FileDevice == NIL_RTFILE) /* obsolete crap */ 163 163 rc = RTFileOpen(&FileDevice, pThis->pszDeviceOpen, RTFILE_O_READ | RTFILE_O_OPEN | RTFILE_O_DENY_NONE); 164 if ( VBOX_SUCCESS(rc))164 if (RT_SUCCESS(rc)) 165 165 { 166 166 /* do ioctl */ … … 312 312 uint8_t abSense[32]; 313 313 int rc2 = DRVHostBaseScsiCmd(pThis, abCmd, 6, PDMBLOCKTXDIR_NONE, NULL, NULL, abSense, sizeof(abSense), 0); 314 if ( VBOX_SUCCESS(rc2))314 if (RT_SUCCESS(rc2)) 315 315 fMediaPresent = true; 316 316 else if ( rc2 == VERR_UNRESOLVED_ERROR … … 710 710 */ 711 711 int rc = DRVHostBaseInitData(pDrvIns, pCfgHandle, PDMBLOCKTYPE_DVD); 712 if ( VBOX_SUCCESS(rc))712 if (RT_SUCCESS(rc)) 713 713 { 714 714 /* … … 719 719 bool fPassthrough; 720 720 rc = CFGMR3QueryBool(pCfgHandle, "Passthrough", &fPassthrough); 721 if ( VBOX_SUCCESS(rc) && fPassthrough)721 if (RT_SUCCESS(rc) && fPassthrough) 722 722 { 723 723 pThis->IBlock.pfnSendCmd = drvHostDvdSendCmd; … … 726 726 # ifdef VBOX_WITH_SUID_WRAPPER /* Solaris setuid for Passthrough mode. */ 727 727 rc = solarisCheckUserAuth(); 728 if ( VBOX_FAILURE(rc))728 if (RT_FAILURE(rc)) 729 729 { 730 730 Log(("DVD: solarisCheckUserAuth failed. Permission denied!\n")); … … 752 752 rc = DRVHostBaseInitFinish(pThis); 753 753 } 754 if ( VBOX_FAILURE(rc))754 if (RT_FAILURE(rc)) 755 755 { 756 756 if (!pThis->fAttachFailError)
Note:
See TracChangeset
for help on using the changeset viewer.