Changeset 11266 in vbox for trunk/src/VBox/Devices/Network/DrvTAPOs2.cpp
- Timestamp:
- Aug 8, 2008 4:14:51 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvTAPOs2.cpp
r11157 r11266 450 450 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 451 451 strcpy(pThis->szDevice, "\\DEV\\TAP$"); 452 else if ( VBOX_FAILURE(rc))452 else if (RT_FAILURE(rc)) 453 453 return PDMDRV_SET_ERROR(pDrvIns, rc, 454 454 N_("Configuration error: Query for \"Device\" failed")); … … 458 458 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 459 459 iConnectTo = -1; 460 else if ( VBOX_FAILURE(rc))460 else if (RT_FAILURE(rc)) 461 461 return PDMDRV_SET_ERROR(pDrvIns, rc, 462 462 N_("Configuration error: Query for \"ConnectTo\" failed")); … … 467 467 */ 468 468 rc = RTFileOpen(&pThis->hDevice, pThis->szDevice, RTFILE_O_DENY_NONE | RTFILE_O_READ); 469 if ( VBOX_FAILURE(rc))469 if (RT_FAILURE(rc)) 470 470 return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, 471 471 N_("Failed to open tap device '%s'"), pThis->szDevice); … … 482 482 else if (Parm[0]) 483 483 rc = VERR_GENERAL_FAILURE; 484 if ( VBOX_FAILURE(rc))484 if (RT_FAILURE(rc)) 485 485 return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, 486 486 N_("Failed to query LanNumber! orc=%d Parm={%ld,%ld}"), … … 509 509 else if (Parm[0]) 510 510 rc = VERR_GENERAL_FAILURE; 511 if ( VBOX_FAILURE(rc))511 if (RT_FAILURE(rc)) 512 512 return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, 513 513 N_("Failed to connect %d to %d! orc=%d Parm={%ld,%ld}"),
Note:
See TracChangeset
for help on using the changeset viewer.