VirtualBox

Changeset 107184 in vbox


Ignore:
Timestamp:
Nov 29, 2024 1:06:06 PM (7 weeks ago)
Author:
vboxsync
Message:

VBoxBalloonCtrl/VBoxModBallooning.cpp: Check returned payload in balloonMachineUpdate(), found by Parfait.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBalloonCtrl/VBoxModBallooning.cpp

    r106061 r107184  
    422422 *
    423423 * @return  IPRT status code.
     424 * @retval  VERR_NOT_FOUND if requested machine payload has not been found.
    424425 * @param   pMachine                Pointer to the machine's internal structure.
    425426 */
     
    453454        PVBOXWATCHDOG_BALLOONCTRL_PAYLOAD pData;
    454455        pData = (PVBOXWATCHDOG_BALLOONCTRL_PAYLOAD)payloadFrom(pMachine, VBOX_MOD_BALLOONING_NAME);
    455         AssertPtr(pData);
     456        AssertPtrReturn(pData, VERR_NOT_FOUND);
    456457
    457458        /* Determine if ballooning is enabled or disabled. */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette