VirtualBox

Changeset 60479 in vbox


Ignore:
Timestamp:
Apr 13, 2016 4:48:42 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
106579
Message:

VMM/APIC: Fix optional parameter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/APICAll.cpp

    r60477 r60479  
    437437 * @param   pVCpu               The cross context virtual CPU structure.
    438438 * @param   pu8PendingIntr      Where to store the interrupt vector if the
    439  *                              interrupt is pending.
     439 *                              interrupt is pending, optional can be NULL.
    440440 */
    441441static bool apicGetHighestPendingInterrupt(PVMCPU pVCpu, uint8_t *pu8PendingIntr)
     
    446446    {
    447447        Assert(irrv <= (int)UINT8_MAX);
    448         *pu8PendingIntr = (uint8_t)irrv;
     448        if (pu8PendingIntr)
     449            *pu8PendingIntr = (uint8_t)irrv;
    449450        return true;
    450451    }
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