VirtualBox

Changeset 71743 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
Apr 7, 2018 10:25:47 PM (7 years ago)
Author:
vboxsync
Message:

DevSB16.cpp,DevHDA.cpp: Just put markers on the PDMDEV_CHECK_VERSIONS_RETURN macro invoations so nobody puts stuff before them again (see ac97).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevHDA.cpp

    r71740 r71743  
    47134713static DECLCALLBACK(int) hdaR3Destruct(PPDMDEVINS pDevIns)
    47144714{
    4715     PDMDEV_CHECK_VERSIONS_RETURN_QUIET(pDevIns);
     4715    PDMDEV_CHECK_VERSIONS_RETURN_QUIET(pDevIns); /* this shall come first */
    47164716    PHDASTATE pThis = PDMINS_2_DATA(pDevIns, PHDASTATE);
    47174717    DEVHDA_LOCK(pThis); /** @todo r=bird: this will fail on early constructor failure. */
     
    47534753static DECLCALLBACK(int) hdaR3Construct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg)
    47544754{
    4755     RT_NOREF(iInstance);
    4756     PDMDEV_CHECK_VERSIONS_RETURN(pDevIns);
     4755    PDMDEV_CHECK_VERSIONS_RETURN(pDevIns); /* this shall come first */
    47574756    PHDASTATE pThis = PDMINS_2_DATA(pDevIns, PHDASTATE);
    4758     Assert(iInstance == 0);
     4757    Assert(iInstance == 0); RT_NOREF(iInstance);
    47594758
    47604759    /*
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