- Timestamp:
- Dec 3, 2008 1:07:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/VirtualBoxImpl.cpp
r14939 r14940 536 536 STDMETHODIMP VirtualBox::COMGETTER(HomeFolder) (BSTR *aHomeFolder) 537 537 { 538 if (!aHomeFolder) 539 return E_POINTER; 538 CheckComArgOutSafeArrayPointerValid(aHomeFolder); 540 539 541 540 AutoCaller autoCaller (this); … … 587 586 STDMETHODIMP VirtualBox::COMGETTER(Host) (IHost **aHost) 588 587 { 589 if (!aHost) 590 return E_POINTER; 588 CheckComArgOutSafeArrayPointerValid(aHost); 591 589 592 590 AutoCaller autoCaller (this); … … 601 599 VirtualBox::COMGETTER(SystemProperties) (ISystemProperties **aSystemProperties) 602 600 { 603 if (!aSystemProperties) 604 return E_POINTER; 601 CheckComArgOutSafeArrayPointerValid(aSystemProperties); 605 602 606 603 AutoCaller autoCaller (this); … … 681 678 STDMETHODIMP VirtualBox::COMGETTER(ProgressOperations) (IProgressCollection **aOperations) 682 679 { 683 if (!aOperations) 684 return E_POINTER; 680 CheckComArgOutSafeArrayPointerValid(aOperations); 685 681 686 682 AutoCaller autoCaller (this); … … 701 697 STDMETHODIMP VirtualBox::COMGETTER(GuestOSTypes) (IGuestOSTypeCollection **aGuestOSTypes) 702 698 { 703 if (!aGuestOSTypes) 704 return E_POINTER; 699 CheckComArgOutSafeArrayPointerValid(aGuestOSTypes); 705 700 706 701 AutoCaller autoCaller (this); … … 720 715 VirtualBox::COMGETTER(SharedFolders) (ISharedFolderCollection **aSharedFolders) 721 716 { 722 if (!aSharedFolders) 723 return E_POINTER; 717 CheckComArgOutSafeArrayPointerValid(aSharedFolders); 724 718 725 719 AutoCaller autoCaller (this); … … 733 727 { 734 728 #ifdef VBOX_WITH_RESOURCE_USAGE_API 735 if (!aPerformanceCollector) 736 return E_POINTER; 729 CheckComArgOutSafeArrayPointerValid(aPerformanceCollector); 737 730 738 731 AutoCaller autoCaller (this); … … 902 895 { 903 896 CheckComArgStrNotEmptyOrNull(aSettingsFile); 904 905 if (!aMachine) 906 return E_POINTER; 897 CheckComArgOutSafeArrayPointerValid(aMachine); 907 898 908 899 AutoCaller autoCaller (this); … … 974 965 STDMETHODIMP VirtualBox::GetMachine (INPTR GUIDPARAM aId, IMachine **aMachine) 975 966 { 976 if (!aMachine) 977 return E_POINTER; 967 CheckComArgOutSafeArrayPointerValid(aMachine); 978 968 979 969 AutoCaller autoCaller (this); … … 996 986 997 987 CheckComArgNotNull(aName); 998 if (!aMachine) 999 return E_POINTER; 988 CheckComArgOutSafeArrayPointerValid(aMachine); 1000 989 1001 990 AutoCaller autoCaller (this); … … 1112 1101 { 1113 1102 CheckComArgNotNull(aLocation); 1114 if (!aHardDisk) 1115 return E_POINTER; 1103 CheckComArgOutSafeArrayPointerValid(aHardDisk); 1116 1104 1117 1105 AutoCaller autoCaller (this); … … 1146 1134 IHardDisk2 **aHardDisk) 1147 1135 { 1148 if (!aHardDisk) 1149 return E_POINTER; 1136 CheckComArgOutSafeArrayPointerValid(aHardDisk); 1150 1137 1151 1138 AutoCaller autoCaller (this); … … 1166 1153 { 1167 1154 CheckComArgNotNull(aLocation); 1168 if (!aHardDisk) 1169 return E_POINTER; 1155 CheckComArgOutSafeArrayPointerValid(aHardDisk); 1170 1156 1171 1157 AutoCaller autoCaller (this); … … 1186 1172 { 1187 1173 CheckComArgStrNotEmptyOrNull(aLocation); 1188 1189 if (!aDVDImage) 1190 return E_POINTER; 1174 CheckComArgOutSafeArrayPointerValid(aDVDImage); 1191 1175 1192 1176 AutoCaller autoCaller (this); … … 1217 1201 STDMETHODIMP VirtualBox::GetDVDImage (INPTR GUIDPARAM aId, IDVDImage2 **aDVDImage) 1218 1202 { 1219 if (!aDVDImage) 1220 return E_POINTER; 1203 CheckComArgOutSafeArrayPointerValid(aDVDImage); 1221 1204 1222 1205 AutoCaller autoCaller (this); … … 1237 1220 { 1238 1221 CheckComArgNotNull(aLocation); 1239 if (!aDVDImage) 1240 return E_POINTER; 1222 CheckComArgOutSafeArrayPointerValid(aDVDImage); 1241 1223 1242 1224 AutoCaller autoCaller (this); … … 1257 1239 { 1258 1240 CheckComArgStrNotEmptyOrNull(aLocation); 1259 1260 if (!aFloppyImage) 1261 return E_POINTER; 1241 CheckComArgOutSafeArrayPointerValid(aFloppyImage); 1262 1242 1263 1243 AutoCaller autoCaller (this); … … 1290 1270 1291 1271 { 1292 if (!aFloppyImage) 1293 return E_POINTER; 1272 CheckComArgOutSafeArrayPointerValid(aFloppyImage); 1294 1273 1295 1274 AutoCaller autoCaller (this); … … 1311 1290 { 1312 1291 CheckComArgNotNull(aLocation); 1313 if (!aFloppyImage) 1314 return E_POINTER; 1292 CheckComArgOutSafeArrayPointerValid(aFloppyImage); 1315 1293 1316 1294 AutoCaller autoCaller (this); … … 1385 1363 GetNextExtraDataKey (INPTR BSTR aKey, BSTR *aNextKey, BSTR *aNextValue) 1386 1364 { 1387 if (!aNextKey) 1388 return E_POINTER; 1365 CheckComArgOutSafeArrayPointerValid(aNextKey); 1389 1366 1390 1367 AutoCaller autoCaller (this); … … 1485 1462 { 1486 1463 CheckComArgNotNull(aKey); 1487 if (!aValue) 1488 return E_POINTER; 1464 CheckComArgOutSafeArrayPointerValid(aValue); 1489 1465 1490 1466 AutoCaller autoCaller (this); … … 1703 1679 CheckComArgNotNull(aSession); 1704 1680 CheckComArgNotNull(aType); 1705 if (!aProgress) 1706 return E_POINTER; 1681 CheckComArgOutSafeArrayPointerValid(aProgress); 1707 1682 1708 1683 AutoCaller autoCaller (this); … … 1758 1733 INPTR GUIDPARAM aMachineId) 1759 1734 { 1760 if (!aSession) 1761 return E_POINTER; 1735 CheckComArgNotNull(aSession); 1762 1736 1763 1737 AutoCaller autoCaller (this); … … 1850 1824 STDMETHODIMP VirtualBox::SaveSettingsWithBackup (BSTR *aBakFileName) 1851 1825 { 1852 if (!aBakFileName) 1853 return E_POINTER; 1826 CheckComArgOutSafeArrayPointerValid(aBakFileName); 1854 1827 1855 1828 AutoCaller autoCaller (this);
Note:
See TracChangeset
for help on using the changeset viewer.