Changeset 14972 in vbox
- Timestamp:
- Dec 4, 2008 12:10:37 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 40340
- Location:
- trunk/src/VBox/Main
- Files:
-
- 33 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/AudioAdapterImpl.cpp
r14959 r14972 161 161 STDMETHODIMP AudioAdapter::COMGETTER(Enabled)(BOOL *aEnabled) 162 162 { 163 if (!aEnabled) 164 return E_POINTER; 163 CheckComArgOutPointerValid(aEnabled); 165 164 166 165 AutoCaller autoCaller (this); … … 196 195 STDMETHODIMP AudioAdapter::COMGETTER(AudioDriver)(AudioDriverType_T *aAudioDriver) 197 196 { 198 if (!aAudioDriver) 199 return E_POINTER; 197 CheckComArgOutPointerValid(aAudioDriver); 200 198 201 199 AutoCaller autoCaller (this); … … 274 272 STDMETHODIMP AudioAdapter::COMGETTER(AudioController)(AudioControllerType_T *aAudioController) 275 273 { 276 if (!aAudioController) 277 return E_POINTER; 274 CheckComArgOutPointerValid(aAudioController); 278 275 279 276 AutoCaller autoCaller (this); -
trunk/src/VBox/Main/BIOSSettingsImpl.cpp
r14959 r14972 412 412 STDMETHODIMP BIOSSettings::COMGETTER(IDEControllerType)(IDEControllerType_T *aControllerType) 413 413 { 414 if (!aControllerType) 415 return E_POINTER; 414 CheckComArgOutPointerValid(aControllerType); 416 415 417 416 AutoCaller autoCaller (this); -
trunk/src/VBox/Main/ConsoleImpl.cpp
r14959 r14972 1160 1160 STDMETHODIMP Console::COMGETTER(Machine) (IMachine **aMachine) 1161 1161 { 1162 if (!aMachine) 1163 return E_POINTER; 1162 CheckComArgOutPointerValid(aMachine); 1164 1163 1165 1164 AutoCaller autoCaller (this); … … 1174 1173 STDMETHODIMP Console::COMGETTER(State) (MachineState_T *aMachineState) 1175 1174 { 1176 if (!aMachineState) 1177 return E_POINTER; 1175 CheckComArgOutPointerValid(aMachineState); 1178 1176 1179 1177 AutoCaller autoCaller (this); … … 1190 1188 STDMETHODIMP Console::COMGETTER(Guest) (IGuest **aGuest) 1191 1189 { 1192 if (!aGuest) 1193 return E_POINTER; 1190 CheckComArgOutPointerValid(aGuest); 1194 1191 1195 1192 AutoCaller autoCaller (this); … … 1204 1201 STDMETHODIMP Console::COMGETTER(Keyboard) (IKeyboard **aKeyboard) 1205 1202 { 1206 if (!aKeyboard) 1207 return E_POINTER; 1203 CheckComArgOutPointerValid(aKeyboard); 1208 1204 1209 1205 AutoCaller autoCaller (this); … … 1218 1214 STDMETHODIMP Console::COMGETTER(Mouse) (IMouse **aMouse) 1219 1215 { 1220 if (!aMouse) 1221 return E_POINTER; 1216 CheckComArgOutPointerValid(aMouse); 1222 1217 1223 1218 AutoCaller autoCaller (this); … … 1232 1227 STDMETHODIMP Console::COMGETTER(Display) (IDisplay **aDisplay) 1233 1228 { 1234 if (!aDisplay) 1235 return E_POINTER; 1229 CheckComArgOutPointerValid(aDisplay); 1236 1230 1237 1231 AutoCaller autoCaller (this); … … 1246 1240 STDMETHODIMP Console::COMGETTER(Debugger) (IMachineDebugger **aDebugger) 1247 1241 { 1248 if (!aDebugger) 1249 return E_POINTER; 1242 CheckComArgOutPointerValid(aDebugger); 1250 1243 1251 1244 AutoCaller autoCaller (this); … … 1269 1262 STDMETHODIMP Console::COMGETTER(USBDevices) (IUSBDeviceCollection **aUSBDevices) 1270 1263 { 1271 if (!aUSBDevices) 1272 return E_POINTER; 1264 CheckComArgOutPointerValid(aUSBDevices); 1273 1265 1274 1266 AutoCaller autoCaller (this); … … 1287 1279 STDMETHODIMP Console::COMGETTER(RemoteUSBDevices) (IHostUSBDeviceCollection **aRemoteUSBDevices) 1288 1280 { 1289 if (!aRemoteUSBDevices) 1290 return E_POINTER; 1281 CheckComArgOutPointerValid(aRemoteUSBDevices); 1291 1282 1292 1283 AutoCaller autoCaller (this); … … 1305 1296 STDMETHODIMP Console::COMGETTER(RemoteDisplayInfo) (IRemoteDisplayInfo **aRemoteDisplayInfo) 1306 1297 { 1307 if (!aRemoteDisplayInfo) 1308 return E_POINTER; 1298 CheckComArgOutPointerValid(aRemoteDisplayInfo); 1309 1299 1310 1300 AutoCaller autoCaller (this); … … 1320 1310 Console::COMGETTER(SharedFolders) (ISharedFolderCollection **aSharedFolders) 1321 1311 { 1322 if (!aSharedFolders) 1323 return E_POINTER; 1312 CheckComArgOutPointerValid(aSharedFolders); 1324 1313 1325 1314 AutoCaller autoCaller (this); … … 1602 1591 LogFlowThisFuncEnter(); 1603 1592 1604 if (!aHandled) 1605 return E_POINTER; 1593 CheckComArgOutPointerValid(aHandled); 1606 1594 1607 1595 *aHandled = FALSE; … … 1645 1633 LogFlowThisFuncEnter(); 1646 1634 1647 if (!aEntered) 1648 return E_POINTER; 1635 CheckComArgOutPointerValid(aEntered); 1649 1636 1650 1637 *aEntered = FALSE; … … 1722 1709 LogFlowThisFunc (("mMachineState=%d\n", mMachineState)); 1723 1710 1724 if (!aProgress) 1725 return E_POINTER; 1711 CheckComArgOutPointerValid(aProgress); 1726 1712 1727 1713 AutoCaller autoCaller (this); … … 1862 1848 STDMETHODIMP Console::AdoptSavedState (INPTR BSTR aSavedStateFile) 1863 1849 { 1864 if (!aSavedStateFile) 1865 return E_INVALIDARG; 1850 CheckComArgNotNull(aSavedStateFile); 1866 1851 1867 1852 AutoCaller autoCaller (this); … … 1915 1900 DeviceActivity_T *aDeviceActivity) 1916 1901 { 1917 if (!aDeviceActivity) 1918 return E_INVALIDARG; 1902 CheckComArgNotNull(aDeviceActivity); 1919 1903 1920 1904 AutoCaller autoCaller (this); … … 2056 2040 { 2057 2041 #ifdef VBOX_WITH_USB 2058 if (!aDevice) 2059 return E_POINTER; 2042 CheckComArgOutPointerValid(aDevice); 2060 2043 2061 2044 AutoCaller autoCaller (this); … … 2117 2100 Console::CreateSharedFolder (INPTR BSTR aName, INPTR BSTR aHostPath, BOOL aWritable) 2118 2101 { 2119 if (!aName || !aHostPath)2120 return E_INVALIDARG;2102 CheckComArgNotNull(aName); 2103 CheckComArgNotNull(aHostPath); 2121 2104 2122 2105 AutoCaller autoCaller (this); … … 2189 2172 STDMETHODIMP Console::RemoveSharedFolder (INPTR BSTR aName) 2190 2173 { 2191 if (!aName) 2192 return E_INVALIDARG; 2174 CheckComArgNotNull(aName); 2193 2175 2194 2176 AutoCaller autoCaller (this); … … 2252 2234 LogFlowThisFunc (("aName='%ls' mMachineState=%08X\n", aName, mMachineState)); 2253 2235 2254 if (!aName) 2255 return E_INVALIDARG; 2256 if (!aProgress) 2257 return E_POINTER; 2236 CheckComArgNotNull(aName); 2237 CheckComArgOutPointerValid(aProgress); 2258 2238 2259 2239 AutoCaller autoCaller (this); … … 2423 2403 STDMETHODIMP Console::DiscardSnapshot (INPTR GUIDPARAM aId, IProgress **aProgress) 2424 2404 { 2425 if (Guid (aId).isEmpty()) 2426 return E_INVALIDARG; 2427 if (!aProgress) 2428 return E_POINTER; 2405 CheckComArgExpr(aId, Guid (aId).isEmpty() == false); 2406 CheckComArgOutPointerValid(aProgress); 2429 2407 2430 2408 AutoCaller autoCaller (this); … … 2492 2470 STDMETHODIMP Console::RegisterCallback (IConsoleCallback *aCallback) 2493 2471 { 2494 if (!aCallback) 2495 return E_INVALIDARG; 2472 CheckComArgNotNull(aCallback); 2496 2473 2497 2474 AutoCaller autoCaller (this); … … 2534 2511 STDMETHODIMP Console::UnregisterCallback (IConsoleCallback *aCallback) 2535 2512 { 2536 if (!aCallback) 2537 return E_INVALIDARG; 2513 CheckComArgNotNull(aCallback); 2538 2514 2539 2515 AutoCaller autoCaller (this); -
trunk/src/VBox/Main/DVDDriveImpl.cpp
r14959 r14972 194 194 STDMETHODIMP DVDDrive::COMGETTER(State) (DriveState_T *aState) 195 195 { 196 if (!aState) 197 return E_POINTER; 196 CheckComArgOutPointerValid(aState); 198 197 199 198 AutoCaller autoCaller (this); … … 209 208 STDMETHODIMP DVDDrive::COMGETTER(Passthrough) (BOOL *aPassthrough) 210 209 { 211 if (!aPassthrough) 212 return E_POINTER; 210 CheckComArgOutPointerValid(aPassthrough); 213 211 214 212 AutoCaller autoCaller (this); … … 297 295 STDMETHODIMP DVDDrive::CaptureHostDrive (IHostDVDDrive *aHostDVDDrive) 298 296 { 299 if (!aHostDVDDrive) 300 return E_INVALIDARG; 297 CheckComArgNotNull(aHostDVDDrive); 301 298 302 299 AutoCaller autoCaller (this); … … 358 355 STDMETHODIMP DVDDrive::GetImage (IDVDImage2 **aDVDImage) 359 356 { 360 if (!aDVDImage) 361 return E_POINTER; 357 CheckComArgOutPointerValid(aDVDImage); 362 358 363 359 AutoCaller autoCaller (this); … … 373 369 STDMETHODIMP DVDDrive::GetHostDrive(IHostDVDDrive **aHostDrive) 374 370 { 375 if (!aHostDrive) 376 return E_POINTER; 371 CheckComArgOutPointerValid(aHostDrive); 377 372 378 373 AutoCaller autoCaller (this); -
trunk/src/VBox/Main/DisplayImpl.cpp
r14942 r14972 1460 1460 LogFlowFunc (("\n")); 1461 1461 1462 if (!aFramebuffer) 1463 return E_POINTER; 1462 CheckComArgOutPointerValid(aFramebuffer); 1464 1463 1465 1464 AutoCaller autoCaller (this); … … 1501 1500 LogFlowFunc (("aScreenId = %d\n", aScreenId)); 1502 1501 1503 if (!aFramebuffer) 1504 return E_POINTER; 1502 CheckComArgOutPointerValid(aFramebuffer); 1505 1503 1506 1504 AutoCaller autoCaller (this); -
trunk/src/VBox/Main/FloppyDriveImpl.cpp
r14959 r14972 194 194 STDMETHODIMP FloppyDrive::COMGETTER(Enabled) (BOOL *aEnabled) 195 195 { 196 if (!aEnabled) 197 return E_POINTER; 196 CheckComArgOutPointerValid(aEnabled); 198 197 199 198 AutoCaller autoCaller (this); … … 236 235 STDMETHODIMP FloppyDrive::COMGETTER(State) (DriveState_T *aState) 237 236 { 238 if (!aState) 239 return E_POINTER; 237 CheckComArgOutPointerValid(aState); 240 238 241 239 AutoCaller autoCaller (this); … … 304 302 STDMETHODIMP FloppyDrive::CaptureHostDrive (IHostFloppyDrive *aHostFloppyDrive) 305 303 { 306 if (!aHostFloppyDrive) 307 return E_INVALIDARG; 304 CheckComArgNotNull(aHostFloppyDrive); 308 305 309 306 AutoCaller autoCaller (this); … … 365 362 STDMETHODIMP FloppyDrive::GetImage (IFloppyImage2 **aFloppyImage) 366 363 { 367 if (!aFloppyImage) 368 return E_POINTER; 364 CheckComArgOutPointerValid(aFloppyImage); 369 365 370 366 AutoCaller autoCaller (this); … … 380 376 STDMETHODIMP FloppyDrive::GetHostDrive (IHostFloppyDrive **aHostDrive) 381 377 { 382 if (!aHostDrive) 383 return E_POINTER; 378 CheckComArgOutPointerValid(aHostDrive); 384 379 385 380 AutoCaller autoCaller (this); -
trunk/src/VBox/Main/FramebufferImpl.cpp
r14942 r14972 59 59 STDMETHODIMP InternalFramebuffer::COMGETTER(Address) (BYTE **address) 60 60 { 61 if (!address) 62 return E_POINTER; 61 CheckComArgOutPointerValid(address); 63 62 *address = mData; 64 63 return S_OK; … … 67 66 STDMETHODIMP InternalFramebuffer::COMGETTER(Width) (ULONG *width) 68 67 { 69 if (!width) 70 return E_POINTER; 68 CheckComArgOutPointerValid(width); 71 69 *width = mWidth; 72 70 return S_OK; … … 75 73 STDMETHODIMP InternalFramebuffer::COMGETTER(Height) (ULONG *height) 76 74 { 77 if (!height) 78 return E_POINTER; 75 CheckComArgOutPointerValid(height); 79 76 *height = mHeight; 80 77 return S_OK; … … 83 80 STDMETHODIMP InternalFramebuffer::COMGETTER(BitsPerPixel) (ULONG *bitsPerPixel) 84 81 { 85 if (!bitsPerPixel) 86 return E_POINTER; 82 CheckComArgOutPointerValid(bitsPerPixel); 87 83 *bitsPerPixel = mBitsPerPixel; 88 84 return S_OK; … … 91 87 STDMETHODIMP InternalFramebuffer::COMGETTER(BytesPerLine) (ULONG *bytesPerLine) 92 88 { 93 if (!bytesPerLine) 94 return E_POINTER; 89 CheckComArgOutPointerValid(bytesPerLine); 95 90 *bytesPerLine = mBytesPerLine; 96 91 return S_OK; … … 99 94 STDMETHODIMP InternalFramebuffer::COMGETTER(PixelFormat) (ULONG *pixelFormat) 100 95 { 101 if (!pixelFormat) 102 return E_POINTER; 96 CheckComArgOutPointerValid(pixelFormat); 103 97 *pixelFormat = FramebufferPixelFormat_FOURCC_RGB; 104 98 return S_OK; … … 107 101 STDMETHODIMP InternalFramebuffer::COMGETTER(UsesGuestVRAM) (BOOL *usesGuestVRAM) 108 102 { 109 if (!usesGuestVRAM) 110 return E_POINTER; 103 CheckComArgOutPointerValid(usesGuestVRAM); 111 104 *usesGuestVRAM = FALSE; 112 105 return S_OK; … … 115 108 STDMETHODIMP InternalFramebuffer::COMGETTER(HeightReduction) (ULONG *heightReduction) 116 109 { 117 if (!heightReduction) 118 return E_POINTER; 110 CheckComArgOutPointerValid(heightReduction); 119 111 /* no reduction */ 120 112 *heightReduction = 0; … … 124 116 STDMETHODIMP InternalFramebuffer::COMGETTER(Overlay) (IFramebufferOverlay **aOverlay) 125 117 { 126 if (!aOverlay) 127 return E_POINTER; 118 CheckComArgOutPointerValid(aOverlay); 128 119 /* no overlay */ 129 120 *aOverlay = 0; … … 133 124 STDMETHODIMP InternalFramebuffer::COMGETTER(WinId) (ULONG64 *winId) 134 125 { 135 if (!winId) 136 return E_POINTER; 126 CheckComArgOutPointerValid(winId); 137 127 *winId = 0; 138 128 return S_OK; … … 158 148 BOOL *finished) 159 149 { 160 if (!finished) 161 return E_POINTER; 150 CheckComArgOutPointerValid(finished); 162 151 // no need for the caller to wait 163 152 *finished = true; … … 173 162 NOREF (bpl); 174 163 175 if (!finished) 176 return E_POINTER; 164 CheckComArgOutPointerValid(finished); 177 165 // no need for the caller to wait 178 166 *finished = true; … … 192 180 BOOL *supported) 193 181 { 194 if (!supported) 195 return E_POINTER; 182 CheckComArgOutPointerValid(supported); 196 183 /* no acceleration please, we're a slow fallback implementation! */ 197 184 *supported = false; … … 202 189 BOOL *supported) 203 190 { 204 if (!supported) 205 return E_POINTER; 191 CheckComArgOutPointerValid(supported); 206 192 /* whatever you want! */ 207 193 *supported = true; … … 212 198 ULONG color, BOOL *handled) 213 199 { 214 if (!handled) 215 return E_POINTER; 200 CheckComArgOutPointerValid(handled); 216 201 /* eek, what do you expect from us?! */ 217 202 *handled = false; … … 222 207 ULONG width, ULONG height, BOOL *handled) 223 208 { 224 if (!handled) 225 return E_POINTER; 209 CheckComArgOutPointerValid(handled); 226 210 /* eek, what do you expect from us?! */ 227 211 *handled = false; … … 232 216 ULONG *aCountCopied) 233 217 { 218 CheckComArgOutPointerValid(aRectangles); 219 234 220 PRTRECT rects = (PRTRECT)aRectangles; 235 236 if (!rects)237 return E_POINTER;238 221 239 222 /// @todo … … 248 231 STDMETHODIMP InternalFramebuffer::SetVisibleRegion(BYTE *aRectangles, ULONG aCount) 249 232 { 233 CheckComArgOutPointerValid(aRectangles); 234 250 235 PRTRECT rects = (PRTRECT)aRectangles; 251 252 if (!rects)253 return E_POINTER;254 236 255 237 /// @todo -
trunk/src/VBox/Main/GuestImpl.cpp
r14772 r14972 118 118 STDMETHODIMP Guest::COMGETTER(OSTypeId) (BSTR *aOSTypeId) 119 119 { 120 if (!aOSTypeId) 121 return E_POINTER; 120 CheckComArgOutPointerValid(aOSTypeId); 122 121 123 122 AutoCaller autoCaller (this); … … 137 136 STDMETHODIMP Guest::COMGETTER(AdditionsActive) (BOOL *aAdditionsActive) 138 137 { 139 if (!aAdditionsActive) 140 return E_POINTER; 138 CheckComArgOutPointerValid(aAdditionsActive); 141 139 142 140 AutoCaller autoCaller (this); … … 152 150 STDMETHODIMP Guest::COMGETTER(AdditionsVersion) (BSTR *aAdditionsVersion) 153 151 { 154 if (!aAdditionsVersion) 155 return E_POINTER; 152 CheckComArgOutPointerValid(aAdditionsVersion); 156 153 157 154 AutoCaller autoCaller (this); … … 167 164 STDMETHODIMP Guest::COMGETTER(SupportsSeamless) (BOOL *aSupportsSeamless) 168 165 { 169 if (!aSupportsSeamless) 170 return E_POINTER; 166 CheckComArgOutPointerValid(aSupportsSeamless); 171 167 172 168 AutoCaller autoCaller (this); … … 182 178 STDMETHODIMP Guest::COMGETTER(SupportsGraphics) (BOOL *aSupportsGraphics) 183 179 { 184 if (!aSupportsGraphics) 185 return E_POINTER; 180 CheckComArgOutPointerValid(aSupportsGraphics); 186 181 187 182 AutoCaller autoCaller (this); … … 197 192 STDMETHODIMP Guest::COMGETTER(MemoryBalloonSize) (ULONG *aMemoryBalloonSize) 198 193 { 199 if (!aMemoryBalloonSize) 200 return E_POINTER; 194 CheckComArgOutPointerValid(aMemoryBalloonSize); 201 195 202 196 AutoCaller autoCaller (this); … … 232 226 STDMETHODIMP Guest::COMGETTER(StatisticsUpdateInterval) (ULONG *aUpdateInterval) 233 227 { 234 if (!aUpdateInterval) 235 return E_POINTER; 228 CheckComArgOutPointerValid(aUpdateInterval); 236 229 237 230 AutoCaller autoCaller (this); … … 268 261 INPTR BSTR aDomain, BOOL aAllowInteractiveLogon) 269 262 { 270 if (!aUserName || !aPassword || !aDomain) 271 return E_INVALIDARG; 263 CheckComArgNotNull(aUserName); 264 CheckComArgNotNull(aPassword); 265 CheckComArgNotNull(aDomain); 272 266 273 267 AutoCaller autoCaller (this); … … 294 288 STDMETHODIMP Guest::GetStatistic(ULONG aCpuId, GuestStatisticType_T aStatistic, ULONG *aStatVal) 295 289 { 296 if (!aStatVal) 297 return E_INVALIDARG; 298 299 if (aCpuId != 0) 300 return E_INVALIDARG; 301 302 if (aStatistic >= GuestStatisticType_MaxVal) 303 return E_INVALIDARG; 290 CheckComArgExpr(aCpuId, aCpuId = 0); 291 CheckComArgExpr(aStatistic, aStatistic < GuestStatisticType_MaxVal); 292 CheckComArgOutPointerValid(aStatVal); 304 293 305 294 /* not available or not yet reported? */ 306 if (mCurrentGuestStat[aStatistic] == GUEST_STAT_INVALID) 307 return E_INVALIDARG; 295 CheckComArgExpr(aStatistic, mCurrentGuestStat[aStatistic] != GUEST_STAT_INVALID); 308 296 309 297 *aStatVal = mCurrentGuestStat[aStatistic]; … … 313 301 STDMETHODIMP Guest::SetStatistic(ULONG aCpuId, GuestStatisticType_T aStatistic, ULONG aStatVal) 314 302 { 315 if (aCpuId != 0) 316 return E_INVALIDARG; 317 318 if (aStatistic >= GuestStatisticType_MaxVal) 319 return E_INVALIDARG; 320 321 /* internal method assumes that the caller known what he's doing (no boundary checks) */ 303 CheckComArgExpr(aCpuId, aCpuId = 0); 304 CheckComArgExpr(aStatistic, aStatistic < GuestStatisticType_MaxVal); 305 306 /* internal method assumes that the caller knows what he's doing (no boundary checks) */ 322 307 mCurrentGuestStat[aStatistic] = aStatVal; 323 308 return S_OK; -
trunk/src/VBox/Main/GuestOSTypeImpl.cpp
r14930 r14972 133 133 STDMETHODIMP GuestOSType::COMGETTER(FamilyId) (BSTR *aFamilyId) 134 134 { 135 if (!aFamilyId) 136 return E_POINTER; 135 CheckComArgOutPointerValid(aFamilyId); 137 136 138 137 AutoCaller autoCaller (this); … … 147 146 STDMETHODIMP GuestOSType::COMGETTER(FamilyDescription) (BSTR *aFamilyDescription) 148 147 { 149 if (!aFamilyDescription) 150 return E_POINTER; 148 CheckComArgOutPointerValid(aFamilyDescription); 151 149 152 150 AutoCaller autoCaller (this); … … 161 159 STDMETHODIMP GuestOSType::COMGETTER(Id) (BSTR *aId) 162 160 { 163 if (!aId) 164 return E_POINTER; 161 CheckComArgOutPointerValid(aId); 165 162 166 163 AutoCaller autoCaller (this); … … 175 172 STDMETHODIMP GuestOSType::COMGETTER(Description) (BSTR *aDescription) 176 173 { 177 if (!aDescription) 178 return E_POINTER; 174 CheckComArgOutPointerValid(aDescription); 179 175 180 176 AutoCaller autoCaller (this); … … 189 185 STDMETHODIMP GuestOSType::COMGETTER(Is64Bit) (BOOL *aIs64Bit) 190 186 { 191 if (!aIs64Bit) 192 return E_POINTER; 187 CheckComArgOutPointerValid(aIs64Bit); 193 188 194 189 AutoCaller autoCaller (this); … … 203 198 STDMETHODIMP GuestOSType::COMGETTER(RecommendedIOAPIC) (BOOL *aRecommendedIOAPIC) 204 199 { 205 if (!aRecommendedIOAPIC) 206 return E_POINTER; 200 CheckComArgOutPointerValid(aRecommendedIOAPIC); 207 201 208 202 AutoCaller autoCaller (this); … … 217 211 STDMETHODIMP GuestOSType::COMGETTER(RecommendedVirtEx) (BOOL *aRecommendedVirtEx) 218 212 { 219 if (!aRecommendedVirtEx) 220 return E_POINTER; 213 CheckComArgOutPointerValid(aRecommendedVirtEx); 221 214 222 215 AutoCaller autoCaller (this); … … 231 224 STDMETHODIMP GuestOSType::COMGETTER(RecommendedRAM) (ULONG *aRAMSize) 232 225 { 233 if (!aRAMSize) 234 return E_POINTER; 226 CheckComArgOutPointerValid(aRAMSize); 235 227 236 228 AutoCaller autoCaller (this); … … 245 237 STDMETHODIMP GuestOSType::COMGETTER(RecommendedVRAM) (ULONG *aVRAMSize) 246 238 { 247 if (!aVRAMSize) 248 return E_POINTER; 239 CheckComArgOutPointerValid(aVRAMSize); 249 240 250 241 AutoCaller autoCaller (this); … … 259 250 STDMETHODIMP GuestOSType::COMGETTER(RecommendedHDD) (ULONG *aHDDSize) 260 251 { 261 if (!aHDDSize) 262 return E_POINTER; 252 CheckComArgOutPointerValid(aHDDSize); 263 253 264 254 AutoCaller autoCaller (this); … … 273 263 STDMETHODIMP GuestOSType::COMGETTER(AdapterType) (NetworkAdapterType_T *aNetworkAdapterType) 274 264 { 275 if (!aNetworkAdapterType) 276 return E_POINTER; 265 CheckComArgOutPointerValid(aNetworkAdapterType); 277 266 278 267 AutoCaller autoCaller (this); -
trunk/src/VBox/Main/HardDiskAttachmentImpl.cpp
r14772 r14972 88 88 STDMETHODIMP HardDisk2Attachment::COMGETTER(HardDisk) (IHardDisk2 **aHardDisk) 89 89 { 90 if (!aHardDisk) 91 return E_POINTER; 90 CheckComArgOutPointerValid(aHardDisk); 92 91 93 92 AutoCaller autoCaller (this); … … 103 102 STDMETHODIMP HardDisk2Attachment::COMGETTER(Bus) (StorageBus_T *aBus) 104 103 { 105 if (!aBus) 106 return E_POINTER; 104 CheckComArgOutPointerValid(aBus); 107 105 108 106 AutoCaller autoCaller (this); … … 117 115 STDMETHODIMP HardDisk2Attachment::COMGETTER(Channel) (LONG *aChannel) 118 116 { 119 if (!aChannel) 120 return E_INVALIDARG; 117 CheckComArgOutPointerValid(aChannel); 121 118 122 119 AutoCaller autoCaller (this); … … 131 128 STDMETHODIMP HardDisk2Attachment::COMGETTER(Device) (LONG *aDevice) 132 129 { 133 if (!aDevice) 134 return E_INVALIDARG; 130 CheckComArgOutPointerValid(aDevice); 135 131 136 132 AutoCaller autoCaller (this); -
trunk/src/VBox/Main/HardDiskFormatImpl.cpp
r14780 r14972 173 173 STDMETHODIMP HardDiskFormat::COMGETTER(Id)(BSTR *aId) 174 174 { 175 if (!aId) 176 return E_POINTER; 175 CheckComArgOutPointerValid(aId); 177 176 178 177 AutoCaller autoCaller (this); … … 187 186 STDMETHODIMP HardDiskFormat::COMGETTER(Name)(BSTR *aName) 188 187 { 189 if (!aName) 190 return E_POINTER; 188 CheckComArgOutPointerValid(aName); 191 189 192 190 AutoCaller autoCaller (this); … … 221 219 STDMETHODIMP HardDiskFormat::COMGETTER(Capabilities)(ULONG *aCaps) 222 220 { 223 if (!aCaps) 224 return E_POINTER; 221 CheckComArgOutPointerValid(aCaps); 225 222 226 223 AutoCaller autoCaller (this); -
trunk/src/VBox/Main/HostDVDDriveImpl.cpp
r14772 r14972 90 90 STDMETHODIMP HostDVDDrive::COMGETTER(Name) (BSTR *aName) 91 91 { 92 if (!aName) 93 return E_POINTER; 92 CheckComArgOutPointerValid(aName); 94 93 95 94 AutoCaller autoCaller (this); … … 105 104 STDMETHODIMP HostDVDDrive::COMGETTER(Description) (BSTR *aDescription) 106 105 { 107 if (!aDescription) 108 return E_POINTER; 106 CheckComArgOutPointerValid(aDescription); 109 107 110 108 AutoCaller autoCaller (this); … … 120 118 STDMETHODIMP HostDVDDrive::COMGETTER(Udi) (BSTR *aUdi) 121 119 { 122 if (!aUdi) 123 return E_POINTER; 120 CheckComArgOutPointerValid(aUdi); 124 121 125 122 AutoCaller autoCaller (this); -
trunk/src/VBox/Main/HostFloppyDriveImpl.cpp
r14772 r14972 90 90 STDMETHODIMP HostFloppyDrive::COMGETTER(Name) (BSTR *aName) 91 91 { 92 if (!aName) 93 return E_POINTER; 92 CheckComArgOutPointerValid(aName); 94 93 95 94 AutoCaller autoCaller (this); … … 105 104 STDMETHODIMP HostFloppyDrive::COMGETTER(Description) (BSTR *aDescription) 106 105 { 107 if (!aDescription) 108 return E_POINTER; 106 CheckComArgOutPointerValid(aDescription); 109 107 110 108 AutoCaller autoCaller (this); … … 120 118 STDMETHODIMP HostFloppyDrive::COMGETTER(Udi) (BSTR *aUdi) 121 119 { 122 if (!aUdi) 123 return E_POINTER; 120 CheckComArgOutPointerValid(aUdi); 124 121 125 122 AutoCaller autoCaller (this); -
trunk/src/VBox/Main/HostImpl.cpp
r14953 r14972 1120 1120 { 1121 1121 #ifdef VBOX_WITH_USB 1122 if (!aUSBDevices) 1123 return E_POINTER; 1122 CheckComArgOutPointerValid(aUSBDevices); 1124 1123 1125 1124 AutoWriteLock alock (this); … … 1142 1141 { 1143 1142 #ifdef VBOX_WITH_USB 1144 if (!aUSBDeviceFilters) 1145 return E_POINTER; 1143 CheckComArgOutPointerValid(aUSBDeviceFilters); 1146 1144 1147 1145 AutoWriteLock alock (this); … … 1350 1348 STDMETHODIMP Host::COMGETTER(UTCTime)(LONG64 *aUTCTime) 1351 1349 { 1352 if (!aUTCTime) 1353 return E_POINTER; 1350 CheckComArgOutPointerValid(aUTCTime); 1354 1351 AutoWriteLock alock (this); 1355 1352 CHECK_READY(); … … 1427 1424 IProgress **aProgress) 1428 1425 { 1429 if (!aName) 1430 return E_INVALIDARG; 1431 if (!aHostNetworkInterface) 1432 return E_POINTER; 1433 if (!aProgress) 1434 return E_POINTER; 1426 CheckComArgNotNull(aName); 1427 CheckComArgOutPointerValid(aHostNetworkInterface); 1428 CheckComArgOutPointerValid(aProgress); 1435 1429 1436 1430 AutoWriteLock alock (this); … … 1493 1487 IProgress **aProgress) 1494 1488 { 1495 if (!aHostNetworkInterface) 1496 return E_POINTER; 1497 if (!aProgress) 1498 return E_POINTER; 1489 CheckComArgOutPointerValid(aHostNetworkInterface); 1490 CheckComArgOutPointerValid(aProgress); 1499 1491 1500 1492 AutoWriteLock alock (this); … … 1555 1547 { 1556 1548 #ifdef VBOX_WITH_USB 1557 if (!aFilter)1558 return E_POINTER;1559 1560 1549 CheckComArgStrNotEmptyOrNull(aName); 1550 CheckComArgOutPointerValid(aFilter); 1561 1551 1562 1552 AutoWriteLock alock (this); … … 1581 1571 { 1582 1572 #ifdef VBOX_WITH_USB 1583 if (!aFilter) 1584 return E_INVALIDARG; 1573 CheckComArgNotNull(aFilter); 1585 1574 1586 1575 /* Note: HostUSBDeviceFilter and USBProxyService also uses this lock. */ … … 1629 1618 { 1630 1619 #ifdef VBOX_WITH_USB 1631 if (!aFilter) 1632 return E_POINTER; 1620 CheckComArgOutPointerValid(aFilter); 1633 1621 1634 1622 /* Note: HostUSBDeviceFilter and USBProxyService also uses this lock. */ -
trunk/src/VBox/Main/HostNetworkInterfaceImpl.cpp
r14772 r14972 82 82 STDMETHODIMP HostNetworkInterface::COMGETTER(Name) (BSTR *aInterfaceName) 83 83 { 84 if (!aInterfaceName) 85 return E_POINTER; 84 CheckComArgOutPointerValid(aInterfaceName); 86 85 87 86 AutoCaller autoCaller (this); … … 101 100 STDMETHODIMP HostNetworkInterface::COMGETTER(Id) (GUIDPARAMOUT aGuid) 102 101 { 103 if (!aGuid) 104 return E_POINTER; 102 CheckComArgOutPointerValid(aGuid); 105 103 106 104 AutoCaller autoCaller (this); -
trunk/src/VBox/Main/MachineDebuggerImpl.cpp
r14772 r14972 122 122 STDMETHODIMP MachineDebugger::COMGETTER(Singlestep) (BOOL *aEnabled) 123 123 { 124 if (!aEnabled) 125 return E_POINTER; 124 CheckComArgOutPointerValid(aEnabled); 126 125 127 126 AutoCaller autoCaller (this); … … 155 154 STDMETHODIMP MachineDebugger::COMGETTER(RecompileUser) (BOOL *aEnabled) 156 155 { 157 if (!aEnabled) 158 return E_POINTER; 156 CheckComArgOutPointerValid(aEnabled); 159 157 160 158 AutoCaller autoCaller (this); … … 224 222 STDMETHODIMP MachineDebugger::COMGETTER(RecompileSupervisor) (BOOL *aEnabled) 225 223 { 226 if (!aEnabled) 227 return E_POINTER; 224 CheckComArgOutPointerValid(aEnabled); 228 225 229 226 AutoCaller autoCaller (this); … … 293 290 STDMETHODIMP MachineDebugger::COMGETTER(PATMEnabled) (BOOL *aEnabled) 294 291 { 295 if (!aEnabled) 296 return E_POINTER; 292 CheckComArgOutPointerValid(aEnabled); 297 293 298 294 AutoCaller autoCaller (this); … … 372 368 STDMETHODIMP MachineDebugger::COMGETTER(CSAMEnabled) (BOOL *aEnabled) 373 369 { 374 if (!aEnabled) 375 return E_POINTER; 370 CheckComArgOutPointerValid(aEnabled); 376 371 377 372 AutoCaller autoCaller (this); … … 437 432 STDMETHODIMP MachineDebugger::COMGETTER(LogEnabled) (BOOL *aEnabled) 438 433 { 439 if (!aEnabled) 440 return E_POINTER; 434 CheckComArgOutPointerValid(aEnabled); 441 435 442 436 AutoCaller autoCaller (this); … … 499 493 STDMETHODIMP MachineDebugger::COMGETTER(HWVirtExEnabled) (BOOL *aEnabled) 500 494 { 501 if (!aEnabled) 502 return E_POINTER; 495 CheckComArgOutPointerValid(aEnabled); 503 496 504 497 AutoCaller autoCaller (this); … … 525 518 STDMETHODIMP MachineDebugger::COMGETTER(HWVirtExNestedPagingEnabled) (BOOL *aEnabled) 526 519 { 527 if (!aEnabled) 528 return E_POINTER; 520 CheckComArgOutPointerValid(aEnabled); 529 521 530 522 AutoCaller autoCaller (this); … … 551 543 STDMETHODIMP MachineDebugger::COMGETTER(HWVirtExVPIDEnabled) (BOOL *aEnabled) 552 544 { 553 if (!aEnabled) 554 return E_POINTER; 545 CheckComArgOutPointerValid(aEnabled); 555 546 556 547 AutoCaller autoCaller (this); … … 577 568 STDMETHODIMP MachineDebugger::COMGETTER(PAEEnabled) (BOOL *aEnabled) 578 569 { 579 if (!aEnabled) 580 return E_POINTER; 570 CheckComArgOutPointerValid(aEnabled); 581 571 582 572 AutoCaller autoCaller (this); … … 606 596 STDMETHODIMP MachineDebugger::COMGETTER(VirtualTimeRate) (ULONG *aPct) 607 597 { 608 if (!aPct) 609 return E_POINTER; 598 CheckComArgOutPointerValid(aPct); 610 599 611 600 AutoCaller autoCaller (this); … … 670 659 STDMETHODIMP MachineDebugger::COMGETTER(VM) (ULONG64 *aVm) 671 660 { 672 if (!aVm) 673 return E_POINTER; 661 CheckComArgOutPointerValid(aVm); 674 662 675 663 AutoCaller autoCaller (this); -
trunk/src/VBox/Main/MachineImpl.cpp
r14959 r14972 717 717 STDMETHODIMP Machine::COMGETTER(Parent) (IVirtualBox **aParent) 718 718 { 719 if (!aParent) 720 return E_POINTER; 719 CheckComArgOutPointerValid(aParent); 721 720 722 721 AutoLimitedCaller autoCaller (this); … … 731 730 STDMETHODIMP Machine::COMGETTER(Accessible) (BOOL *aAccessible) 732 731 { 733 if (!aAccessible) 734 return E_POINTER; 732 CheckComArgOutPointerValid(aAccessible); 735 733 736 734 AutoLimitedCaller autoCaller (this); … … 769 767 STDMETHODIMP Machine::COMGETTER(AccessError) (IVirtualBoxErrorInfo **aAccessError) 770 768 { 771 if (!aAccessError) 772 return E_POINTER; 769 CheckComArgOutPointerValid(aAccessError); 773 770 774 771 AutoLimitedCaller autoCaller (this); … … 802 799 STDMETHODIMP Machine::COMGETTER(Name) (BSTR *aName) 803 800 { 804 if (!aName) 805 return E_POINTER; 801 CheckComArgOutPointerValid(aName); 806 802 807 803 AutoCaller autoCaller (this); … … 817 813 STDMETHODIMP Machine::COMSETTER(Name) (INPTR BSTR aName) 818 814 { 819 if (!aName) 820 return E_INVALIDARG; 815 CheckComArgNotNull(aName); 821 816 822 817 if (!*aName) … … 840 835 STDMETHODIMP Machine::COMGETTER(Description) (BSTR *aDescription) 841 836 { 842 if (!aDescription) 843 return E_POINTER; 837 CheckComArgOutPointerValid(aDescription); 844 838 845 839 AutoCaller autoCaller (this); … … 871 865 STDMETHODIMP Machine::COMGETTER(Id) (GUIDPARAMOUT aId) 872 866 { 873 if (!aId) 874 return E_POINTER; 867 CheckComArgOutPointerValid(aId); 875 868 876 869 AutoLimitedCaller autoCaller (this); … … 886 879 STDMETHODIMP Machine::COMGETTER(OSTypeId) (BSTR *aOSTypeId) 887 880 { 888 if (!aOSTypeId) 889 return E_POINTER; 881 CheckComArgOutPointerValid(aOSTypeId); 890 882 891 883 AutoCaller autoCaller (this); … … 901 893 STDMETHODIMP Machine::COMSETTER(OSTypeId) (INPTR BSTR aOSTypeId) 902 894 { 903 if (!aOSTypeId) 904 return E_INVALIDARG; 895 CheckComArgNotNull(aOSTypeId); 905 896 906 897 AutoCaller autoCaller (this); … … 1330 1321 STDMETHODIMP Machine::COMGETTER(SnapshotFolder) (BSTR *aSnapshotFolder) 1331 1322 { 1332 if (!aSnapshotFolder) 1333 return E_POINTER; 1323 CheckComArgOutPointerValid(aSnapshotFolder); 1334 1324 1335 1325 AutoCaller autoCaller (this); … … 1480 1470 { 1481 1471 #ifdef VBOX_WITH_USB 1482 if (!aUSBController) 1483 return E_POINTER; 1472 CheckComArgOutPointerValid(aUSBController); 1484 1473 1485 1474 AutoCaller autoCaller (this); … … 1503 1492 { 1504 1493 #ifdef VBOX_WITH_AHCI 1505 if (!aSATAController) 1506 return E_POINTER; 1494 CheckComArgOutPointerValid(aSATAController); 1507 1495 1508 1496 AutoCaller autoCaller (this); … … 1522 1510 STDMETHODIMP Machine::COMGETTER(SettingsFilePath) (BSTR *aFilePath) 1523 1511 { 1524 if (!aFilePath) 1525 return E_POINTER; 1512 CheckComArgOutPointerValid(aFilePath); 1526 1513 1527 1514 AutoLimitedCaller autoCaller (this); … … 1537 1524 COMGETTER(SettingsFileVersion) (BSTR *aSettingsFileVersion) 1538 1525 { 1539 if (!aSettingsFileVersion) 1540 return E_INVALIDARG; 1526 CheckComArgOutPointerValid(aSettingsFileVersion); 1541 1527 1542 1528 AutoCaller autoCaller (this); … … 1551 1537 STDMETHODIMP Machine::COMGETTER(SettingsModified) (BOOL *aModified) 1552 1538 { 1553 if (!aModified) 1554 return E_POINTER; 1539 CheckComArgOutPointerValid(aModified); 1555 1540 1556 1541 AutoCaller autoCaller (this); … … 1580 1565 STDMETHODIMP Machine::COMGETTER(SessionState) (SessionState_T *aSessionState) 1581 1566 { 1582 if (!aSessionState) 1583 return E_POINTER; 1567 CheckComArgOutPointerValid(aSessionState); 1584 1568 1585 1569 AutoCaller autoCaller (this); … … 1595 1579 STDMETHODIMP Machine::COMGETTER(SessionType) (BSTR *aSessionType) 1596 1580 { 1597 if (!aSessionType) 1598 return E_POINTER; 1581 CheckComArgOutPointerValid(aSessionType); 1599 1582 1600 1583 AutoCaller autoCaller (this); … … 1610 1593 STDMETHODIMP Machine::COMGETTER(SessionPid) (ULONG *aSessionPid) 1611 1594 { 1612 if (!aSessionPid) 1613 return E_POINTER; 1595 CheckComArgOutPointerValid(aSessionPid); 1614 1596 1615 1597 AutoCaller autoCaller (this); … … 1640 1622 STDMETHODIMP Machine::COMGETTER(LastStateChange) (LONG64 *aLastStateChange) 1641 1623 { 1642 if (!aLastStateChange) 1643 return E_POINTER; 1624 CheckComArgOutPointerValid(aLastStateChange); 1644 1625 1645 1626 AutoCaller autoCaller (this); … … 1655 1636 STDMETHODIMP Machine::COMGETTER(StateFilePath) (BSTR *aStateFilePath) 1656 1637 { 1657 if (!aStateFilePath) 1658 return E_POINTER; 1638 CheckComArgOutPointerValid(aStateFilePath); 1659 1639 1660 1640 AutoCaller autoCaller (this); … … 1670 1650 STDMETHODIMP Machine::COMGETTER(LogFolder) (BSTR *aLogFolder) 1671 1651 { 1672 if (!aLogFolder) 1673 return E_POINTER; 1652 CheckComArgOutPointerValid(aLogFolder); 1674 1653 1675 1654 AutoCaller autoCaller (this); … … 1688 1667 STDMETHODIMP Machine::COMGETTER(CurrentSnapshot) (ISnapshot **aCurrentSnapshot) 1689 1668 { 1690 if (!aCurrentSnapshot) 1691 return E_POINTER; 1669 CheckComArgOutPointerValid(aCurrentSnapshot); 1692 1670 1693 1671 AutoCaller autoCaller (this); … … 1703 1681 STDMETHODIMP Machine::COMGETTER(SnapshotCount) (ULONG *aSnapshotCount) 1704 1682 { 1705 if (!aSnapshotCount) 1706 return E_POINTER; 1683 CheckComArgOutPointerValid(aSnapshotCount); 1707 1684 1708 1685 AutoCaller autoCaller (this); … … 1719 1696 STDMETHODIMP Machine::COMGETTER(CurrentStateModified) (BOOL *aCurrentStateModified) 1720 1697 { 1721 if (!aCurrentStateModified) 1722 return E_POINTER; 1698 CheckComArgOutPointerValid(aCurrentStateModified); 1723 1699 1724 1700 AutoCaller autoCaller (this); … … 1740 1716 Machine::COMGETTER(SharedFolders) (ISharedFolderCollection **aSharedFolders) 1741 1717 { 1742 if (!aSharedFolders) 1743 return E_POINTER; 1718 CheckComArgOutPointerValid(aSharedFolders); 1744 1719 1745 1720 AutoCaller autoCaller (this); … … 1759 1734 Machine::COMGETTER(ClipboardMode) (ClipboardMode_T *aClipboardMode) 1760 1735 { 1761 if (!aClipboardMode) 1762 return E_POINTER; 1736 CheckComArgOutPointerValid(aClipboardMode); 1763 1737 1764 1738 AutoCaller autoCaller (this); … … 1792 1766 Machine::COMGETTER(GuestPropertyNotificationPatterns) (BSTR *aPatterns) 1793 1767 { 1794 if (!aPatterns) 1795 return E_POINTER; 1768 CheckComArgOutPointerValid(aPatterns); 1796 1769 1797 1770 AutoCaller autoCaller (this); … … 2366 2339 STDMETHODIMP Machine::GetNextExtraDataKey (INPTR BSTR aKey, BSTR *aNextKey, BSTR *aNextValue) 2367 2340 { 2368 if (!aNextKey) 2369 return E_POINTER; 2341 CheckComArgOutPointerValid(aNextKey); 2370 2342 2371 2343 AutoCaller autoCaller (this); … … 2470 2442 STDMETHODIMP Machine::GetExtraData (INPTR BSTR aKey, BSTR *aValue) 2471 2443 { 2472 if (!aKey) 2473 return E_INVALIDARG; 2474 if (!aValue) 2475 return E_POINTER; 2444 CheckComArgNotNull(aKey); 2445 CheckComArgOutPointerValid(aValue); 2476 2446 2477 2447 AutoCaller autoCaller (this); … … 2538 2508 STDMETHODIMP Machine::SetExtraData (INPTR BSTR aKey, INPTR BSTR aValue) 2539 2509 { 2540 if (!aKey) 2541 return E_INVALIDARG; 2510 CheckComArgNotNull(aKey); 2542 2511 2543 2512 AutoCaller autoCaller (this); … … 2678 2647 STDMETHODIMP Machine::SaveSettingsWithBackup (BSTR *aBakFileName) 2679 2648 { 2680 if (!aBakFileName) 2681 return E_POINTER; 2649 CheckComArgOutPointerValid(aBakFileName); 2682 2650 2683 2651 AutoCaller autoCaller (this); … … 2808 2776 STDMETHODIMP Machine::GetSnapshot (INPTR GUIDPARAM aId, ISnapshot **aSnapshot) 2809 2777 { 2810 if (!aSnapshot) 2811 return E_POINTER; 2778 CheckComArgOutPointerValid(aSnapshot); 2812 2779 2813 2780 AutoCaller autoCaller (this); … … 2827 2794 STDMETHODIMP Machine::FindSnapshot (INPTR BSTR aName, ISnapshot **aSnapshot) 2828 2795 { 2829 if (!aName) 2830 return E_INVALIDARG; 2831 if (!aSnapshot) 2832 return E_POINTER; 2796 CheckComArgNotNull(aName); 2797 CheckComArgOutPointerValid(aSnapshot); 2833 2798 2834 2799 AutoCaller autoCaller (this); … … 2856 2821 Machine::CreateSharedFolder (INPTR BSTR aName, INPTR BSTR aHostPath, BOOL aWritable) 2857 2822 { 2858 if (!aName || !aHostPath)2859 return E_INVALIDARG;2823 CheckComArgNotNull(aName); 2824 CheckComArgNotNull(aHostPath); 2860 2825 2861 2826 AutoCaller autoCaller (this); … … 2897 2862 STDMETHODIMP Machine::RemoveSharedFolder (INPTR BSTR aName) 2898 2863 { 2899 if (!aName) 2900 return E_INVALIDARG; 2864 CheckComArgNotNull(aName); 2901 2865 2902 2866 AutoCaller autoCaller (this); … … 2924 2888 STDMETHODIMP Machine::CanShowConsoleWindow (BOOL *aCanShow) 2925 2889 { 2926 if (!aCanShow) 2927 return E_POINTER; 2890 CheckComArgOutPointerValid(aCanShow); 2928 2891 2929 2892 /* start with No */ … … 2955 2918 STDMETHODIMP Machine::ShowConsoleWindow (ULONG64 *aWinId) 2956 2919 { 2957 if (!aWinId) 2958 return E_POINTER; 2920 CheckComArgOutPointerValid(aWinId); 2959 2921 2960 2922 AutoCaller autoCaller (this); … … 8119 8081 LogFlowThisFunc (("\n")); 8120 8082 8121 if (!aUSBDevice) 8122 return E_INVALIDARG; 8123 if (!aMatched) 8124 return E_POINTER; 8083 CheckComArgNotNull(aUSBDevice); 8084 CheckComArgOutPointerValid(aMatched); 8125 8085 8126 8086 AutoCaller autoCaller (this); -
trunk/src/VBox/Main/MediumImpl.cpp
r14931 r14972 53 53 STDMETHODIMP MediumBase::COMGETTER(Id) (GUIDPARAMOUT aId) 54 54 { 55 if (!aId) 56 return E_POINTER; 55 CheckComArgOutPointerValid(aId); 57 56 58 57 AutoCaller autoCaller (this); … … 68 67 STDMETHODIMP MediumBase::COMGETTER(Description) (BSTR *aDescription) 69 68 { 70 if (!aDescription) 71 return E_POINTER; 69 CheckComArgOutPointerValid(aDescription); 72 70 73 71 AutoCaller autoCaller (this); … … 83 81 STDMETHODIMP MediumBase::COMSETTER(Description) (INPTR BSTR aDescription) 84 82 { 85 if (!aDescription) 86 return E_INVALIDARG; 83 CheckComArgNotNull(aDescription); 87 84 88 85 AutoCaller autoCaller (this); … … 100 97 STDMETHODIMP MediumBase::COMGETTER(State) (MediaState_T *aState) 101 98 { 102 if (!aState) 103 return E_POINTER; 99 CheckComArgOutPointerValid(aState); 104 100 105 101 AutoCaller autoCaller (this); … … 132 128 STDMETHODIMP MediumBase::COMGETTER(Location) (BSTR *aLocation) 133 129 { 134 if (!aLocation) 135 return E_POINTER; 130 CheckComArgOutPointerValid(aLocation); 136 131 137 132 AutoCaller autoCaller (this); … … 147 142 STDMETHODIMP MediumBase::COMSETTER(Location) (INPTR BSTR aLocation) 148 143 { 149 if (!aLocation) 150 return E_INVALIDARG; 144 CheckComArgNotNull(aLocation); 151 145 152 146 AutoCaller autoCaller (this); … … 169 163 STDMETHODIMP MediumBase::COMGETTER(Name) (BSTR *aName) 170 164 { 171 if (!aName) 172 return E_POINTER; 165 CheckComArgOutPointerValid(aName); 173 166 174 167 AutoCaller autoCaller (this); … … 184 177 STDMETHODIMP MediumBase::COMGETTER(Size) (ULONG64 *aSize) 185 178 { 186 if (!aSize) 187 return E_POINTER; 179 CheckComArgOutPointerValid(aSize); 188 180 189 181 AutoCaller autoCaller (this); … … 199 191 STDMETHODIMP MediumBase::COMGETTER(LastAccessError) (BSTR *aLastAccessError) 200 192 { 201 if (!aLastAccessError) 202 return E_POINTER; 193 CheckComArgOutPointerValid(aLastAccessError); 203 194 204 195 AutoCaller autoCaller (this); -
trunk/src/VBox/Main/NetworkAdapterImpl.cpp
r14959 r14972 177 177 STDMETHODIMP NetworkAdapter::COMGETTER(AdapterType) (NetworkAdapterType_T *aAdapterType) 178 178 { 179 if (!aAdapterType) 180 return E_POINTER; 179 CheckComArgOutPointerValid(aAdapterType); 181 180 182 181 AutoCaller autoCaller (this); … … 233 232 STDMETHODIMP NetworkAdapter::COMGETTER(Slot) (ULONG *aSlot) 234 233 { 235 if (!aSlot) 236 return E_POINTER; 234 CheckComArgOutPointerValid(aSlot); 237 235 238 236 AutoCaller autoCaller (this); … … 248 246 STDMETHODIMP NetworkAdapter::COMGETTER(Enabled) (BOOL *aEnabled) 249 247 { 250 if (!aEnabled) 251 return E_POINTER; 248 CheckComArgOutPointerValid(aEnabled); 252 249 253 250 AutoCaller autoCaller (this); … … 288 285 STDMETHODIMP NetworkAdapter::COMGETTER(MACAddress)(BSTR *aMACAddress) 289 286 { 290 if (!aMACAddress) 291 return E_POINTER; 287 CheckComArgOutPointerValid(aMACAddress); 292 288 293 289 AutoCaller autoCaller (this); … … 386 382 NetworkAttachmentType_T *aAttachmentType) 387 383 { 388 if (!aAttachmentType) 389 return E_POINTER; 384 CheckComArgOutPointerValid(aAttachmentType); 390 385 391 386 AutoCaller autoCaller (this); … … 401 396 STDMETHODIMP NetworkAdapter::COMGETTER(HostInterface)(BSTR *aHostInterface) 402 397 { 403 if (!aHostInterface) 404 return E_POINTER; 398 CheckComArgOutPointerValid(aHostInterface); 405 399 406 400 AutoCaller autoCaller (this); … … 422 416 // (because the @name attribute of <HostInterface> must be always present, 423 417 // but can be empty). 424 if (!aHostInterface) 425 return E_INVALIDARG; 418 CheckComArgNotNull(aHostInterface); 426 419 #else 427 420 CheckComArgStrNotEmptyOrNull(aHostInterface); … … 456 449 { 457 450 # ifdef VBOX_WITH_UNIXY_TAP_NETWORKING 458 if (!aTAPFileDescriptor) 459 return E_POINTER; 451 CheckComArgOutPointerValid(aTAPFileDescriptor); 460 452 461 453 AutoCaller autoCaller (this); … … 517 509 { 518 510 # ifdef VBOX_WITH_UNIXY_TAP_NETWORKING 519 if (!aTAPSetupApplication) 520 return E_POINTER; 511 CheckComArgOutPointerValid(aTAPSetupApplication); 521 512 522 513 AutoCaller autoCaller (this); … … 572 563 { 573 564 # ifdef VBOX_WITH_UNIXY_TAP_NETWORKING 574 if (!aTAPTerminateApplication) 575 return E_POINTER; 565 CheckComArgOutPointerValid(aTAPTerminateApplication); 576 566 577 567 AutoCaller autoCaller (this); … … 627 617 STDMETHODIMP NetworkAdapter::COMGETTER(InternalNetwork) (BSTR *aInternalNetwork) 628 618 { 629 if (!aInternalNetwork) 630 return E_POINTER; 619 CheckComArgOutPointerValid(aInternalNetwork); 631 620 632 621 AutoCaller autoCaller (this); … … 676 665 STDMETHODIMP NetworkAdapter::COMGETTER(NATNetwork) (BSTR *aNATNetwork) 677 666 { 678 if (!aNATNetwork) 679 return E_POINTER; 667 CheckComArgOutPointerValid(aNATNetwork); 680 668 681 669 AutoCaller autoCaller (this); … … 716 704 STDMETHODIMP NetworkAdapter::COMGETTER(CableConnected) (BOOL *aConnected) 717 705 { 718 if (!aConnected) 719 return E_POINTER; 706 CheckComArgOutPointerValid(aConnected); 720 707 721 708 AutoCaller autoCaller (this); … … 756 743 STDMETHODIMP NetworkAdapter::COMGETTER(LineSpeed) (ULONG *aSpeed) 757 744 { 758 if (!aSpeed) 759 return E_POINTER; 745 CheckComArgOutPointerValid(aSpeed); 760 746 761 747 AutoCaller autoCaller (this); … … 796 782 STDMETHODIMP NetworkAdapter::COMGETTER(TraceEnabled) (BOOL *aEnabled) 797 783 { 798 if (!aEnabled) 799 return E_POINTER; 784 CheckComArgOutPointerValid(aEnabled); 800 785 801 786 AutoCaller autoCaller (this); … … 835 820 STDMETHODIMP NetworkAdapter::COMGETTER(TraceFile) (BSTR *aTraceFile) 836 821 { 837 if (!aTraceFile) 838 return E_POINTER; 822 CheckComArgOutPointerValid(aTraceFile); 839 823 840 824 AutoCaller autoCaller (this); -
trunk/src/VBox/Main/ParallelPortImpl.cpp
r14772 r14972 323 323 STDMETHODIMP ParallelPort::COMGETTER(Enabled) (BOOL *aEnabled) 324 324 { 325 if (!aEnabled) 326 return E_POINTER; 325 CheckComArgOutPointerValid(aEnabled); 327 326 328 327 AutoCaller autoCaller (this); … … 372 371 STDMETHODIMP ParallelPort::COMGETTER(Slot) (ULONG *aSlot) 373 372 { 374 if (!aSlot) 375 return E_POINTER; 373 CheckComArgOutPointerValid(aSlot); 376 374 377 375 AutoCaller autoCaller (this); … … 387 385 STDMETHODIMP ParallelPort::COMGETTER(IRQ) (ULONG *aIRQ) 388 386 { 389 if (!aIRQ) 390 return E_POINTER; 387 CheckComArgOutPointerValid(aIRQ); 391 388 392 389 AutoCaller autoCaller (this); … … 442 439 STDMETHODIMP ParallelPort::COMGETTER(IOBase) (ULONG *aIOBase) 443 440 { 444 if (!aIOBase) 445 return E_POINTER; 441 CheckComArgOutPointerValid(aIOBase); 446 442 447 443 AutoCaller autoCaller (this); … … 497 493 STDMETHODIMP ParallelPort::COMGETTER(Path) (BSTR *aPath) 498 494 { 499 if (!aPath) 500 return E_POINTER; 495 CheckComArgOutPointerValid(aPath); 501 496 502 497 AutoCaller autoCaller (this); -
trunk/src/VBox/Main/ProgressImpl.cpp
r14772 r14972 195 195 STDMETHODIMP ProgressBase::COMGETTER(Id) (GUIDPARAMOUT aId) 196 196 { 197 if (!aId) 198 return E_POINTER; 197 CheckComArgOutPointerValid(aId); 199 198 200 199 AutoCaller autoCaller (this); … … 209 208 STDMETHODIMP ProgressBase::COMGETTER(Description) (BSTR *aDescription) 210 209 { 211 if (!aDescription) 212 return E_POINTER; 210 CheckComArgOutPointerValid(aDescription); 213 211 214 212 AutoCaller autoCaller (this); … … 223 221 STDMETHODIMP ProgressBase::COMGETTER(Initiator) (IUnknown **aInitiator) 224 222 { 225 if (!aInitiator) 226 return E_POINTER; 223 CheckComArgOutPointerValid(aInitiator); 227 224 228 225 AutoCaller autoCaller (this); … … 245 242 STDMETHODIMP ProgressBase::COMGETTER(Cancelable) (BOOL *aCancelable) 246 243 { 247 if (!aCancelable) 248 return E_POINTER; 244 CheckComArgOutPointerValid(aCancelable); 249 245 250 246 AutoCaller autoCaller (this); … … 260 256 STDMETHODIMP ProgressBase::COMGETTER(Percent) (LONG *aPercent) 261 257 { 262 if (!aPercent) 263 return E_POINTER; 258 CheckComArgOutPointerValid(aPercent); 264 259 265 260 AutoCaller autoCaller (this); … … 283 278 STDMETHODIMP ProgressBase::COMGETTER(Completed) (BOOL *aCompleted) 284 279 { 285 if (!aCompleted) 286 return E_POINTER; 280 CheckComArgOutPointerValid(aCompleted); 287 281 288 282 AutoCaller autoCaller (this); … … 298 292 STDMETHODIMP ProgressBase::COMGETTER(Canceled) (BOOL *aCanceled) 299 293 { 300 if (!aCanceled) 301 return E_POINTER; 294 CheckComArgOutPointerValid(aCanceled); 302 295 303 296 AutoCaller autoCaller (this); … … 313 306 STDMETHODIMP ProgressBase::COMGETTER(ResultCode) (HRESULT *aResultCode) 314 307 { 315 if (!aResultCode) 316 return E_POINTER; 308 CheckComArgOutPointerValid(aResultCode); 317 309 318 310 AutoCaller autoCaller (this); … … 332 324 STDMETHODIMP ProgressBase::COMGETTER(ErrorInfo) (IVirtualBoxErrorInfo **aErrorInfo) 333 325 { 334 if (!aErrorInfo) 335 return E_POINTER; 326 CheckComArgOutPointerValid(aErrorInfo); 336 327 337 328 AutoCaller autoCaller (this); … … 351 342 STDMETHODIMP ProgressBase::COMGETTER(OperationCount) (ULONG *aOperationCount) 352 343 { 353 if (!aOperationCount) 354 return E_POINTER; 344 CheckComArgOutPointerValid(aOperationCount); 355 345 356 346 AutoCaller autoCaller (this); … … 366 356 STDMETHODIMP ProgressBase::COMGETTER(Operation) (ULONG *aOperation) 367 357 { 368 if (!aOperation) 369 return E_POINTER; 358 CheckComArgOutPointerValid(aOperation); 370 359 371 360 AutoCaller autoCaller (this); … … 381 370 STDMETHODIMP ProgressBase::COMGETTER(OperationDescription) (BSTR *aOperationDescription) 382 371 { 383 if (!aOperationDescription) 384 return E_POINTER; 372 CheckComArgOutPointerValid(aOperationDescription); 385 373 386 374 AutoCaller autoCaller (this); … … 396 384 STDMETHODIMP ProgressBase::COMGETTER(OperationPercent) (LONG *aOperationPercent) 397 385 { 398 if (!aOperationPercent) 399 return E_POINTER; 386 CheckComArgOutPointerValid(aOperationPercent); 400 387 401 388 AutoCaller autoCaller (this); … … 1139 1126 STDMETHODIMP CombinedProgress::COMGETTER(Percent) (LONG *aPercent) 1140 1127 { 1141 if (!aPercent) 1142 return E_POINTER; 1128 CheckComArgOutPointerValid(aPercent); 1143 1129 1144 1130 AutoCaller autoCaller (this); … … 1166 1152 STDMETHODIMP CombinedProgress::COMGETTER(Completed) (BOOL *aCompleted) 1167 1153 { 1168 if (!aCompleted) 1169 return E_POINTER; 1154 CheckComArgOutPointerValid(aCompleted); 1170 1155 1171 1156 AutoCaller autoCaller (this); … … 1183 1168 STDMETHODIMP CombinedProgress::COMGETTER(Canceled) (BOOL *aCanceled) 1184 1169 { 1185 if (!aCanceled) 1186 return E_POINTER; 1170 CheckComArgOutPointerValid(aCanceled); 1187 1171 1188 1172 AutoCaller autoCaller (this); … … 1200 1184 STDMETHODIMP CombinedProgress::COMGETTER(ResultCode) (HRESULT *aResultCode) 1201 1185 { 1202 if (!aResultCode) 1203 return E_POINTER; 1186 CheckComArgOutPointerValid(aResultCode); 1204 1187 1205 1188 AutoCaller autoCaller (this); … … 1217 1200 STDMETHODIMP CombinedProgress::COMGETTER(ErrorInfo) (IVirtualBoxErrorInfo **aErrorInfo) 1218 1201 { 1219 if (!aErrorInfo) 1220 return E_POINTER; 1202 CheckComArgOutPointerValid(aErrorInfo); 1221 1203 1222 1204 AutoCaller autoCaller (this); … … 1234 1216 STDMETHODIMP CombinedProgress::COMGETTER(Operation) (ULONG *aOperation) 1235 1217 { 1236 if (!aOperation) 1237 return E_POINTER; 1218 CheckComArgOutPointerValid(aOperation); 1238 1219 1239 1220 AutoCaller autoCaller (this); … … 1251 1232 STDMETHODIMP CombinedProgress::COMGETTER(OperationDescription) (BSTR *aOperationDescription) 1252 1233 { 1253 if (!aOperationDescription) 1254 return E_POINTER; 1234 CheckComArgOutPointerValid(aOperationDescription); 1255 1235 1256 1236 AutoCaller autoCaller (this); … … 1268 1248 STDMETHODIMP CombinedProgress::COMGETTER(OperationPercent) (LONG *aOperationPercent) 1269 1249 { 1270 if (!aOperationPercent) 1271 return E_POINTER; 1250 CheckComArgOutPointerValid(aOperationPercent); 1272 1251 1273 1252 AutoCaller autoCaller (this); -
trunk/src/VBox/Main/RemoteUSBDeviceImpl.cpp
r14772 r14972 134 134 STDMETHODIMP RemoteUSBDevice::COMGETTER(Id) (GUIDPARAMOUT aId) 135 135 { 136 if (!aId) 137 return E_INVALIDARG; 136 CheckComArgOutPointerValid(aId); 138 137 139 138 AutoCaller autoCaller (this); … … 148 147 STDMETHODIMP RemoteUSBDevice::COMGETTER(VendorId) (USHORT *aVendorId) 149 148 { 150 if (!aVendorId) 151 return E_INVALIDARG; 149 CheckComArgOutPointerValid(aVendorId); 152 150 153 151 AutoCaller autoCaller (this); … … 162 160 STDMETHODIMP RemoteUSBDevice::COMGETTER(ProductId) (USHORT *aProductId) 163 161 { 164 if (!aProductId) 165 return E_INVALIDARG; 162 CheckComArgOutPointerValid(aProductId); 166 163 167 164 AutoCaller autoCaller (this); … … 176 173 STDMETHODIMP RemoteUSBDevice::COMGETTER(Revision) (USHORT *aRevision) 177 174 { 178 if (!aRevision) 179 return E_INVALIDARG; 175 CheckComArgOutPointerValid(aRevision); 180 176 181 177 AutoCaller autoCaller (this); … … 190 186 STDMETHODIMP RemoteUSBDevice::COMGETTER(Manufacturer) (BSTR *aManufacturer) 191 187 { 192 if (!aManufacturer) 193 return E_INVALIDARG; 188 CheckComArgOutPointerValid(aManufacturer); 194 189 195 190 AutoCaller autoCaller (this); … … 204 199 STDMETHODIMP RemoteUSBDevice::COMGETTER(Product) (BSTR *aProduct) 205 200 { 206 if (!aProduct) 207 return E_INVALIDARG; 201 CheckComArgOutPointerValid(aProduct); 208 202 209 203 AutoCaller autoCaller (this); … … 218 212 STDMETHODIMP RemoteUSBDevice::COMGETTER(SerialNumber) (BSTR *aSerialNumber) 219 213 { 220 if (!aSerialNumber) 221 return E_INVALIDARG; 214 CheckComArgOutPointerValid(aSerialNumber); 222 215 223 216 AutoCaller autoCaller (this); … … 232 225 STDMETHODIMP RemoteUSBDevice::COMGETTER(Address) (BSTR *aAddress) 233 226 { 234 if (!aAddress) 235 return E_INVALIDARG; 227 CheckComArgOutPointerValid(aAddress); 236 228 237 229 AutoCaller autoCaller (this); … … 246 238 STDMETHODIMP RemoteUSBDevice::COMGETTER(Port) (USHORT *aPort) 247 239 { 248 if (!aPort) 249 return E_INVALIDARG; 240 CheckComArgOutPointerValid(aPort); 250 241 251 242 AutoCaller autoCaller (this); … … 260 251 STDMETHODIMP RemoteUSBDevice::COMGETTER(Version) (USHORT *aVersion) 261 252 { 262 if (!aVersion) 263 return E_INVALIDARG; 253 CheckComArgOutPointerValid(aVersion); 264 254 265 255 AutoCaller autoCaller (this); … … 274 264 STDMETHODIMP RemoteUSBDevice::COMGETTER(PortVersion) (USHORT *aPortVersion) 275 265 { 276 if (!aPortVersion) 277 return E_INVALIDARG; 266 CheckComArgOutPointerValid(aPortVersion); 278 267 279 268 AutoCaller autoCaller (this); … … 288 277 STDMETHODIMP RemoteUSBDevice::COMGETTER(Remote) (BOOL *aRemote) 289 278 { 290 if (!aRemote) 291 return E_INVALIDARG; 279 CheckComArgOutPointerValid(aRemote); 292 280 293 281 AutoCaller autoCaller (this); … … 302 290 303 291 // IHostUSBDevice properties 304 ///////////////////////////////////////////////////////////////////////////// 292 //////////////////////////////////////////////////////////////////////////////// 305 293 306 294 STDMETHODIMP RemoteUSBDevice::COMGETTER(State) (USBDeviceState_T *aState) 307 295 { 308 if (!aState) 309 return E_POINTER; 296 CheckComArgOutPointerValid(aState); 310 297 311 298 AutoCaller autoCaller (this); -
trunk/src/VBox/Main/SATAControllerImpl.cpp
r14772 r14972 175 175 STDMETHODIMP SATAController::COMGETTER(Enabled) (BOOL *aEnabled) 176 176 { 177 if (!aEnabled) 178 return E_POINTER; 177 CheckComArgOutPointerValid(aEnabled); 179 178 180 179 AutoCaller autoCaller (this); … … 218 217 STDMETHODIMP SATAController::COMGETTER(PortCount) (ULONG *aPortCount) 219 218 { 220 if (!aPortCount) 221 return E_POINTER; 219 CheckComArgOutPointerValid(aPortCount); 222 220 223 221 AutoCaller autoCaller (this); … … 270 268 STDMETHODIMP SATAController::GetIDEEmulationPort(LONG DevicePosition, LONG *aPortNumber) 271 269 { 272 if (!aPortNumber) 273 return E_POINTER; 270 CheckComArgOutPointerValid(aPortNumber); 274 271 275 272 AutoCaller autoCaller (this); -
trunk/src/VBox/Main/SerialPortImpl.cpp
r14959 r14972 359 359 STDMETHODIMP SerialPort::COMGETTER(Enabled) (BOOL *aEnabled) 360 360 { 361 if (!aEnabled) 362 return E_POINTER; 361 CheckComArgOutPointerValid(aEnabled); 363 362 364 363 AutoCaller autoCaller (this); … … 401 400 STDMETHODIMP SerialPort::COMGETTER(HostMode) (PortMode_T *aHostMode) 402 401 { 403 if (!aHostMode) 404 return E_POINTER; 402 CheckComArgOutPointerValid(aHostMode); 405 403 406 404 AutoCaller autoCaller (this); … … 469 467 STDMETHODIMP SerialPort::COMGETTER(Slot) (ULONG *aSlot) 470 468 { 471 if (!aSlot) 472 return E_POINTER; 469 CheckComArgOutPointerValid(aSlot); 473 470 474 471 AutoCaller autoCaller (this); … … 484 481 STDMETHODIMP SerialPort::COMGETTER(IRQ) (ULONG *aIRQ) 485 482 { 486 if (!aIRQ) 487 return E_POINTER; 483 CheckComArgOutPointerValid(aIRQ); 488 484 489 485 AutoCaller autoCaller (this); … … 539 535 STDMETHODIMP SerialPort::COMGETTER(IOBase) (ULONG *aIOBase) 540 536 { 541 if (!aIOBase) 542 return E_POINTER; 537 CheckComArgOutPointerValid(aIOBase); 543 538 544 539 AutoCaller autoCaller (this); … … 594 589 STDMETHODIMP SerialPort::COMGETTER(Path) (BSTR *aPath) 595 590 { 596 if (!aPath) 597 return E_POINTER; 591 CheckComArgOutPointerValid(aPath); 598 592 599 593 AutoCaller autoCaller (this); … … 659 653 STDMETHODIMP SerialPort::COMGETTER(Server) (BOOL *aServer) 660 654 { 661 if (!aServer) 662 return E_POINTER; 655 CheckComArgOutPointerValid(aServer); 663 656 664 657 AutoCaller autoCaller (this); -
trunk/src/VBox/Main/SessionImpl.cpp
r14772 r14972 150 150 STDMETHODIMP Session::COMGETTER(State) (SessionState_T *aState) 151 151 { 152 if (!aState) 153 return E_POINTER; 152 CheckComArgOutPointerValid(aState); 154 153 155 154 AutoCaller autoCaller (this); … … 165 164 STDMETHODIMP Session::COMGETTER(Type) (SessionType_T *aType) 166 165 { 167 if (!aType) 168 return E_POINTER; 166 CheckComArgOutPointerValid(aType); 169 167 170 168 AutoCaller autoCaller (this); … … 181 179 STDMETHODIMP Session::COMGETTER(Machine) (IMachine **aMachine) 182 180 { 183 if (!aMachine) 184 return E_POINTER; 181 CheckComArgOutPointerValid(aMachine); 185 182 186 183 AutoCaller autoCaller (this); … … 204 201 STDMETHODIMP Session::COMGETTER(Console) (IConsole **aConsole) 205 202 { 206 if (!aConsole) 207 return E_POINTER; 203 CheckComArgOutPointerValid(aConsole); 208 204 209 205 AutoCaller autoCaller (this); … … 683 679 mState); 684 680 AssertReturn (mType == SessionType_Direct, E_UNEXPECTED); 685 if (!VALID_PTR (aName)) 686 return E_POINTER; 681 CheckComArgNotNull(aName); 687 682 if (!aIsSetter && !VALID_PTR (aRetValue)) 688 683 return E_POINTER; -
trunk/src/VBox/Main/SharedFolderImpl.cpp
r14790 r14972 257 257 STDMETHODIMP SharedFolder::COMGETTER(Name) (BSTR *aName) 258 258 { 259 if (!aName) 260 return E_POINTER; 259 CheckComArgOutPointerValid(aName); 261 260 262 261 AutoCaller autoCaller (this); … … 271 270 STDMETHODIMP SharedFolder::COMGETTER(HostPath) (BSTR *aHostPath) 272 271 { 273 if (!aHostPath) 274 return E_POINTER; 272 CheckComArgOutPointerValid(aHostPath); 275 273 276 274 AutoCaller autoCaller (this); … … 285 283 STDMETHODIMP SharedFolder::COMGETTER(Accessible) (BOOL *aAccessible) 286 284 { 287 if (!aAccessible) 288 return E_POINTER; 285 CheckComArgOutPointerValid(aAccessible); 289 286 290 287 AutoCaller autoCaller (this); … … 318 315 STDMETHODIMP SharedFolder::COMGETTER(Writable) (BOOL *aWritable) 319 316 { 320 if (!aWritable) 321 return E_POINTER; 317 CheckComArgOutPointerValid(aWritable); 322 318 323 319 *aWritable = mData.mWritable; -
trunk/src/VBox/Main/SnapshotImpl.cpp
r14772 r14972 167 167 STDMETHODIMP Snapshot::COMGETTER(Id) (GUIDPARAMOUT aId) 168 168 { 169 if (!aId) 170 return E_POINTER; 169 CheckComArgOutPointerValid(aId); 171 170 172 171 AutoWriteLock alock (this); … … 179 178 STDMETHODIMP Snapshot::COMGETTER(Name) (BSTR *aName) 180 179 { 181 if (!aName) 182 return E_POINTER; 180 CheckComArgOutPointerValid(aName); 183 181 184 182 AutoWriteLock alock (this); … … 195 193 STDMETHODIMP Snapshot::COMSETTER(Name) (INPTR BSTR aName) 196 194 { 197 if (!aName) 198 return E_INVALIDARG; 195 CheckComArgNotNull(aName); 199 196 200 197 AutoWriteLock alock (this); … … 215 212 STDMETHODIMP Snapshot::COMGETTER(Description) (BSTR *aDescription) 216 213 { 217 if (!aDescription) 218 return E_POINTER; 214 CheckComArgOutPointerValid(aDescription); 219 215 220 216 AutoWriteLock alock (this); … … 227 223 STDMETHODIMP Snapshot::COMSETTER(Description) (INPTR BSTR aDescription) 228 224 { 229 if (!aDescription) 230 return E_INVALIDARG; 225 CheckComArgNotNull(aDescription); 231 226 232 227 AutoWriteLock alock (this); … … 247 242 STDMETHODIMP Snapshot::COMGETTER(TimeStamp) (LONG64 *aTimeStamp) 248 243 { 249 if (!aTimeStamp) 250 return E_POINTER; 244 CheckComArgOutPointerValid(aTimeStamp); 251 245 252 246 AutoWriteLock alock (this); … … 259 253 STDMETHODIMP Snapshot::COMGETTER(Online) (BOOL *aOnline) 260 254 { 261 if (!aOnline) 262 return E_POINTER; 255 CheckComArgOutPointerValid(aOnline); 263 256 264 257 AutoWriteLock alock (this); … … 271 264 STDMETHODIMP Snapshot::COMGETTER(Machine) (IMachine **aMachine) 272 265 { 273 if (!aMachine) 274 return E_POINTER; 266 CheckComArgOutPointerValid(aMachine); 275 267 276 268 AutoWriteLock alock (this); … … 283 275 STDMETHODIMP Snapshot::COMGETTER(Parent) (ISnapshot **aParent) 284 276 { 285 if (!aParent) 286 return E_POINTER; 277 CheckComArgOutPointerValid(aParent); 287 278 288 279 AutoWriteLock alock (this); … … 295 286 STDMETHODIMP Snapshot::COMGETTER(Children) (ISnapshotCollection **aChildren) 296 287 { 297 if (!aChildren) 298 return E_POINTER; 288 CheckComArgOutPointerValid(aChildren); 299 289 300 290 AutoWriteLock alock (this); -
trunk/src/VBox/Main/SystemPropertiesImpl.cpp
r14772 r14972 275 275 STDMETHODIMP SystemProperties::COMGETTER(MaxBootPosition)(ULONG *aMaxBootPosition) 276 276 { 277 if (!aMaxBootPosition) 278 return E_POINTER; 277 CheckComArgOutPointerValid(aMaxBootPosition); 279 278 280 279 AutoCaller autoCaller (this); … … 289 288 STDMETHODIMP SystemProperties::COMGETTER(DefaultMachineFolder) (BSTR *aDefaultMachineFolder) 290 289 { 291 if (!aDefaultMachineFolder) 292 return E_POINTER; 290 CheckComArgOutPointerValid(aDefaultMachineFolder); 293 291 294 292 AutoCaller autoCaller (this); … … 319 317 STDMETHODIMP SystemProperties::COMGETTER(DefaultHardDiskFolder) (BSTR *aDefaultHardDiskFolder) 320 318 { 321 if (!aDefaultHardDiskFolder) 322 return E_POINTER; 319 CheckComArgOutPointerValid(aDefaultHardDiskFolder); 323 320 324 321 AutoCaller autoCaller (this); … … 366 363 STDMETHODIMP SystemProperties::COMGETTER(DefaultHardDiskFormat) (BSTR *aDefaultHardDiskFormat) 367 364 { 368 if (!aDefaultHardDiskFormat) 369 return E_POINTER; 365 CheckComArgOutPointerValid(aDefaultHardDiskFormat); 370 366 371 367 AutoCaller autoCaller (this); … … 396 392 STDMETHODIMP SystemProperties::COMGETTER(RemoteDisplayAuthLibrary) (BSTR *aRemoteDisplayAuthLibrary) 397 393 { 398 if (!aRemoteDisplayAuthLibrary) 399 return E_POINTER; 394 CheckComArgOutPointerValid(aRemoteDisplayAuthLibrary); 400 395 401 396 AutoCaller autoCaller (this); … … 426 421 STDMETHODIMP SystemProperties::COMGETTER(WebServiceAuthLibrary) (BSTR *aWebServiceAuthLibrary) 427 422 { 428 if (!aWebServiceAuthLibrary) 429 return E_POINTER; 423 CheckComArgOutPointerValid(aWebServiceAuthLibrary); 430 424 431 425 AutoCaller autoCaller (this); -
trunk/src/VBox/Main/USBControllerImpl.cpp
r14938 r14972 214 214 STDMETHODIMP USBController::COMGETTER(Enabled) (BOOL *aEnabled) 215 215 { 216 if (!aEnabled) 217 return E_POINTER; 216 CheckComArgOutPointerValid(aEnabled); 218 217 219 218 AutoCaller autoCaller (this); … … 257 256 STDMETHODIMP USBController::COMGETTER(EnabledEhci) (BOOL *aEnabled) 258 257 { 259 if (!aEnabled) 260 return E_POINTER; 258 CheckComArgOutPointerValid(aEnabled); 261 259 262 260 AutoCaller autoCaller (this); … … 299 297 STDMETHODIMP USBController::COMGETTER(USBStandard) (USHORT *aUSBStandard) 300 298 { 301 if (!aUSBStandard) 302 return E_POINTER; 299 CheckComArgOutPointerValid(aUSBStandard); 303 300 304 301 AutoCaller autoCaller (this); … … 367 364 STDMETHODIMP USBController::COMGETTER(DeviceFilters) (IUSBDeviceFilterCollection **aDevicesFilters) 368 365 { 369 if (!aDevicesFilters) 370 return E_POINTER; 366 CheckComArgOutPointerValid(aDevicesFilters); 371 367 372 368 AutoCaller autoCaller (this); … … 392 388 { 393 389 #ifdef VBOX_WITH_USB 394 if (!aFilter) 395 return E_POINTER; 390 CheckComArgOutPointerValid(aFilter); 396 391 397 392 CheckComArgStrNotEmptyOrNull(aName); … … 423 418 { 424 419 #ifdef VBOX_WITH_USB 425 if (!aFilter) 426 return E_INVALIDARG; 420 CheckComArgNotNull(aFilter); 427 421 428 422 AutoCaller autoCaller (this); … … 488 482 { 489 483 #ifdef VBOX_WITH_USB 490 if (!aFilter) 491 return E_POINTER; 484 CheckComArgOutPointerValid(aFilter); 492 485 493 486 AutoCaller autoCaller (this); -
trunk/src/VBox/Main/USBDeviceImpl.cpp
r14772 r14972 146 146 STDMETHODIMP OUSBDevice::COMGETTER(Id)(GUIDPARAMOUT aId) 147 147 { 148 if (!aId) 149 return E_POINTER; 148 CheckComArgOutPointerValid(aId); 150 149 151 150 AutoCaller autoCaller (this); … … 167 166 STDMETHODIMP OUSBDevice::COMGETTER(VendorId)(USHORT *aVendorId) 168 167 { 169 if (!aVendorId) 170 return E_POINTER; 168 CheckComArgOutPointerValid(aVendorId); 171 169 172 170 AutoCaller autoCaller (this); … … 188 186 STDMETHODIMP OUSBDevice::COMGETTER(ProductId)(USHORT *aProductId) 189 187 { 190 if (!aProductId) 191 return E_POINTER; 188 CheckComArgOutPointerValid(aProductId); 192 189 193 190 AutoCaller autoCaller (this); … … 209 206 STDMETHODIMP OUSBDevice::COMGETTER(Revision)(USHORT *aRevision) 210 207 { 211 if (!aRevision) 212 return E_POINTER; 208 CheckComArgOutPointerValid(aRevision); 213 209 214 210 AutoCaller autoCaller (this); … … 229 225 STDMETHODIMP OUSBDevice::COMGETTER(Manufacturer)(BSTR *aManufacturer) 230 226 { 231 if (!aManufacturer) 232 return E_POINTER; 227 CheckComArgOutPointerValid(aManufacturer); 233 228 234 229 AutoCaller autoCaller (this); … … 250 245 STDMETHODIMP OUSBDevice::COMGETTER(Product)(BSTR *aProduct) 251 246 { 252 if (!aProduct) 253 return E_POINTER; 247 CheckComArgOutPointerValid(aProduct); 254 248 255 249 AutoCaller autoCaller (this); … … 271 265 STDMETHODIMP OUSBDevice::COMGETTER(SerialNumber)(BSTR *aSerialNumber) 272 266 { 273 if (!aSerialNumber) 274 return E_POINTER; 267 CheckComArgOutPointerValid(aSerialNumber); 275 268 276 269 AutoCaller autoCaller (this); … … 292 285 STDMETHODIMP OUSBDevice::COMGETTER(Address)(BSTR *aAddress) 293 286 { 294 if (!aAddress) 295 return E_POINTER; 287 CheckComArgOutPointerValid(aAddress); 296 288 297 289 AutoCaller autoCaller (this); … … 306 298 STDMETHODIMP OUSBDevice::COMGETTER(Port)(USHORT *aPort) 307 299 { 308 if (!aPort) 309 return E_POINTER; 300 CheckComArgOutPointerValid(aPort); 310 301 311 302 AutoCaller autoCaller (this); … … 320 311 STDMETHODIMP OUSBDevice::COMGETTER(Version)(USHORT *aVersion) 321 312 { 322 if (!aVersion) 323 return E_POINTER; 313 CheckComArgOutPointerValid(aVersion); 324 314 325 315 AutoCaller autoCaller (this); … … 334 324 STDMETHODIMP OUSBDevice::COMGETTER(PortVersion)(USHORT *aPortVersion) 335 325 { 336 if (!aPortVersion) 337 return E_POINTER; 326 CheckComArgOutPointerValid(aPortVersion); 338 327 339 328 AutoCaller autoCaller (this); … … 348 337 STDMETHODIMP OUSBDevice::COMGETTER(Remote)(BOOL *aRemote) 349 338 { 350 if (!aRemote) 351 return E_POINTER; 339 CheckComArgOutPointerValid(aRemote); 352 340 353 341 AutoCaller autoCaller (this); -
trunk/src/VBox/Main/VirtualBoxErrorInfoImpl.cpp
r14950 r14972 44 44 STDMETHODIMP VirtualBoxErrorInfo::COMGETTER(ResultCode) (HRESULT *aResultCode) 45 45 { 46 if (!aResultCode) 47 return E_POINTER; 46 CheckComArgOutPointerValid(aResultCode); 48 47 49 48 *aResultCode = mResultCode; … … 53 52 STDMETHODIMP VirtualBoxErrorInfo::COMGETTER(InterfaceID) (GUIDPARAMOUT aIID) 54 53 { 55 if (!aIID) 56 return E_POINTER; 54 CheckComArgOutPointerValid(aIID); 57 55 58 56 mIID.cloneTo (aIID); … … 62 60 STDMETHODIMP VirtualBoxErrorInfo::COMGETTER(Component) (BSTR *aComponent) 63 61 { 64 if (!aComponent) 65 return E_POINTER; 62 CheckComArgOutPointerValid(aComponent); 66 63 67 64 mComponent.cloneTo (aComponent); … … 71 68 STDMETHODIMP VirtualBoxErrorInfo::COMGETTER(Text) (BSTR *aText) 72 69 { 73 if (!aText) 74 return E_POINTER; 70 CheckComArgOutPointerValid(aText); 75 71 76 72 mText.cloneTo (aText); … … 80 76 STDMETHODIMP VirtualBoxErrorInfo::COMGETTER(Next) (IVirtualBoxErrorInfo **aNext) 81 77 { 82 if (!aNext) 83 return E_POINTER; 78 CheckComArgOutPointerValid(aNext); 84 79 85 80 /* this will set aNext to NULL if mNext is null */ … … 174 169 NS_IMETHODIMP VirtualBoxErrorInfo::GetMessage (char **aMessage) 175 170 { 176 if (!aMessage) 177 return NS_ERROR_INVALID_POINTER; 171 CheckComArgOutPointerValid(aMessage); 178 172 179 173 Utf8Str (mText).cloneTo (aMessage); -
trunk/src/VBox/Main/include/FramebufferImpl.h
r14949 r14972 80 80 81 81 private: 82 // FIXME: declare these here until VBoxSupportsTranslation base 83 // is available in this class. 84 static const char *tr (const char *a) { return a; } 85 static HRESULT setError (HRESULT rc, const char *a, 86 const char *b, void *c) { return rc; } 87 82 88 int mWidth; 83 89 int mHeight; -
trunk/src/VBox/Main/include/VirtualBoxErrorInfoImpl.h
r14949 r14972 81 81 82 82 private: 83 // FIXME: declare these here until VBoxSupportsTranslation base 84 // is available in this class. 85 static const char *tr (const char *a) { return a; } 86 static HRESULT setError (HRESULT rc, const char *a, 87 const char *b, void *c) { return rc; } 83 88 84 89 HRESULT mResultCode;
Note:
See TracChangeset
for help on using the changeset viewer.