Changeset 8569 in vbox for trunk/src/VBox/Main
- Timestamp:
- May 5, 2008 12:32:51 PM (17 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r8548 r8569 2878 2878 2879 2879 pIMount = (PPDMIMOUNT) pBase->pfnQueryInterface (pBase, PDMINTERFACE_MOUNT); 2880 AssertBreak (pIMount, rc = VERR_INVALID_POINTER);2880 AssertBreakStmt (pIMount, rc = VERR_INVALID_POINTER); 2881 2881 2882 2882 /* -
trunk/src/VBox/Main/ConsoleImpl2.cpp
r8457 r8569 723 723 { 724 724 ComPtr<IVirtualDiskImage> vdiDisk = hardDisk; 725 AssertBreak (!vdiDisk.isNull(), hrc = E_FAIL);725 AssertBreakStmt (!vdiDisk.isNull(), hrc = E_FAIL); 726 726 727 727 rc = CFGMR3InsertNode(pLunL0, "AttachedDriver", &pLunL1); RC_CHECK(); … … 743 743 744 744 vdiDisk = curHardDisk; 745 AssertBreak (!vdiDisk.isNull(), hrc = E_FAIL);745 AssertBreakStmt (!vdiDisk.isNull(), hrc = E_FAIL); 746 746 747 747 PCFGMNODE pCur; … … 761 761 { 762 762 ComPtr<IISCSIHardDisk> iSCSIDisk = hardDisk; 763 AssertBreak (!iSCSIDisk.isNull(), hrc = E_FAIL);763 AssertBreakStmt (!iSCSIDisk.isNull(), hrc = E_FAIL); 764 764 765 765 rc = CFGMR3InsertNode(pLunL0, "AttachedDriver", &pLunL1); RC_CHECK(); … … 827 827 { 828 828 ComPtr<IVMDKImage> vmdkDisk = hardDisk; 829 AssertBreak (!vmdkDisk.isNull(), hrc = E_FAIL);829 AssertBreakStmt (!vmdkDisk.isNull(), hrc = E_FAIL); 830 830 831 831 rc = CFGMR3InsertNode(pLunL0, "AttachedDriver", &pLunL1); RC_CHECK(); … … 845 845 { 846 846 ComPtr<ICustomHardDisk> customHardDisk = hardDisk; 847 AssertBreak (!customHardDisk.isNull(), hrc = E_FAIL);847 AssertBreakStmt (!customHardDisk.isNull(), hrc = E_FAIL); 848 848 849 849 rc = CFGMR3InsertNode(pLunL0, "AttachedDriver", &pLunL1); RC_CHECK(); … … 862 862 { 863 863 ComPtr<IVHDImage> vhdDisk = hardDisk; 864 AssertBreak (!vhdDisk.isNull(), hrc = E_FAIL);864 AssertBreakStmt (!vhdDisk.isNull(), hrc = E_FAIL); 865 865 866 866 rc = CFGMR3InsertNode(pLunL0, "AttachedDriver", &pLunL1); RC_CHECK(); -
trunk/src/VBox/Main/VirtualBoxImpl.cpp
r8170 r8569 2393 2393 do 2394 2394 { 2395 AssertBreak (d.get(), rc = E_POINTER);2395 AssertBreakStmt (d.get(), rc = E_POINTER); 2396 2396 AssertReturn (!d->progress.isNull(), E_POINTER); 2397 2397 -
trunk/src/VBox/Main/darwin/iokit.cpp
r8538 r8569 821 821 do /* loop for breaking out of on failure. */ 822 822 { 823 AssertBreak (pCur,);823 AssertBreakVoid(pCur); 824 824 825 825 /* … … 829 829 pCur->enmState = USBDEVICESTATE_USED_BY_HOST_CAPTURABLE; /* just a default, we'll try harder in a bit. */ 830 830 831 AssertBreak (darwinDictGetU8(PropsRef, CFSTR(kUSBDeviceClass), &pCur->bDeviceClass),);831 AssertBreakVoid(darwinDictGetU8(PropsRef, CFSTR(kUSBDeviceClass), &pCur->bDeviceClass)); 832 832 /* skip hubs */ 833 833 if (pCur->bDeviceClass == 0x09 /* hub, find a define! */) 834 834 break; 835 AssertBreak (darwinDictGetU8(PropsRef, CFSTR(kUSBDeviceSubClass), &pCur->bDeviceSubClass),);836 AssertBreak (darwinDictGetU8(PropsRef, CFSTR(kUSBDeviceProtocol), &pCur->bDeviceProtocol),);837 AssertBreak (darwinDictGetU16(PropsRef, CFSTR(kUSBVendorID), &pCur->idVendor),);838 AssertBreak (darwinDictGetU16(PropsRef, CFSTR(kUSBProductID), &pCur->idProduct),);839 AssertBreak (darwinDictGetU16(PropsRef, CFSTR(kUSBDeviceReleaseNumber), &pCur->bcdDevice),);835 AssertBreakVoid(darwinDictGetU8(PropsRef, CFSTR(kUSBDeviceSubClass), &pCur->bDeviceSubClass)); 836 AssertBreakVoid(darwinDictGetU8(PropsRef, CFSTR(kUSBDeviceProtocol), &pCur->bDeviceProtocol)); 837 AssertBreakVoid(darwinDictGetU16(PropsRef, CFSTR(kUSBVendorID), &pCur->idVendor)); 838 AssertBreakVoid(darwinDictGetU16(PropsRef, CFSTR(kUSBProductID), &pCur->idProduct)); 839 AssertBreakVoid(darwinDictGetU16(PropsRef, CFSTR(kUSBDeviceReleaseNumber), &pCur->bcdDevice)); 840 840 uint32_t u32LocationId; 841 AssertBreak (darwinDictGetU32(PropsRef, CFSTR(kUSBDevicePropertyLocationID), &u32LocationId),);841 AssertBreakVoid(darwinDictGetU32(PropsRef, CFSTR(kUSBDevicePropertyLocationID), &u32LocationId)); 842 842 uint64_t u64SessionId; 843 AssertBreak (darwinDictGetU64(PropsRef, CFSTR("sessionID"), &u64SessionId),);843 AssertBreakVoid(darwinDictGetU64(PropsRef, CFSTR("sessionID"), &u64SessionId)); 844 844 char szAddress[64]; 845 845 RTStrPrintf(szAddress, sizeof(szAddress), "p=0x%04RX16;v=0x%04RX16;s=0x%016RX64;l=0x%08RX32", 846 846 pCur->idProduct, pCur->idVendor, u64SessionId, u32LocationId); 847 847 pCur->pszAddress = RTStrDup(szAddress); 848 AssertBreak (pCur->pszAddress,);848 AssertBreakVoid(pCur->pszAddress); 849 849 pCur->bBus = u32LocationId >> 24; 850 AssertBreak (darwinDictGetU8(PropsRef, CFSTR("PortNum"), &pCur->bPort),);850 AssertBreakVoid(darwinDictGetU8(PropsRef, CFSTR("PortNum"), &pCur->bPort)); 851 851 uint8_t bSpeed; 852 AssertBreak (darwinDictGetU8(PropsRef, CFSTR(kUSBDevicePropertySpeed), &bSpeed),);852 AssertBreakVoid(darwinDictGetU8(PropsRef, CFSTR(kUSBDevicePropertySpeed), &bSpeed)); 853 853 Assert(bSpeed <= 2); 854 854 pCur->enmSpeed = bSpeed == 2 ? USBDEVICESPEED_HIGH … … 1027 1027 SInt32 i32 = (int16_t)u64Value; 1028 1028 CFNumberRef Num = CFNumberCreate(kCFAllocatorDefault, kCFNumberSInt32Type, &i32); 1029 AssertBreak (Num,);1029 AssertBreakVoid(Num); 1030 1030 CFDictionarySetValue(RefMatchingDict, chValue == 'p' ? CFSTR(kUSBProductID) : CFSTR(kUSBVendorID), Num); 1031 1031 CFRelease(Num); -
trunk/src/VBox/Main/linux/server_module.cpp
r8155 r8569 78 78 }; 79 79 80 /** 80 /** 81 81 * Full path to the VBoxSVC executable. 82 82 */ … … 93 93 NS_IMPL_CI_INTERFACE_GETTER1 (VirtualBox, IVirtualBox) 94 94 95 /** 95 /** 96 96 * VirtualBox component constructor. 97 97 * … … 135 135 136 136 LogFlowFunc (("component directory = \"%s\"\n", path.get())); 137 AssertBreak (path.Length() + strlen (VBoxSVC_exe) < RTPATH_MAX,138 rc = NS_ERROR_FAILURE);137 AssertBreakStmt (path.Length() + strlen (VBoxSVC_exe) < RTPATH_MAX, 138 rc = NS_ERROR_FAILURE); 139 139 140 140 strcpy (VBoxSVCPath, path.get()); … … 255 255 #if 0 256 256 /// @todo not really necessary for the moment 257 /** 258 * 259 * @param aCompMgr 260 * @param aPath 261 * @param aLoaderStr 262 * @param aType 263 * @param aInfo 264 * 265 * @return 257 /** 258 * 259 * @param aCompMgr 260 * @param aPath 261 * @param aLoaderStr 262 * @param aType 263 * @param aInfo 264 * 265 * @return 266 266 */ 267 267 static NS_IMETHODIMP … … 286 286 #endif 287 287 288 /** 288 /** 289 289 * Component definition table. 290 290 * Lists all components defined in this module. … … 299 299 NULL, // deregistration function 300 300 NULL, // destructor function 301 /// @todo 301 /// @todo 302 302 NS_CI_INTERFACE_GETTER_NAME(VirtualBox), // interfaces function 303 303 NULL, // language helper 304 /// @todo 304 /// @todo 305 305 &NS_CLASSINFO_NAME(VirtualBox) // global class info & flags 306 306 }
Note:
See TracChangeset
for help on using the changeset viewer.