VirtualBox

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


Ignore:
Timestamp:
Apr 6, 2018 1:42:58 PM (7 years ago)
Author:
vboxsync
Message:

DevHDA: Another nit. bugref:9094

File:
1 edited

Legend:

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

    r71706 r71707  
    12101210
    12111211    uint32_t cbCorbBuf = cEntries * sizeof(uint32_t);
    1212 
    12131212    if (cbCorbBuf != pThis->cbCorbBuf)
    12141213    {
     
    12221221        {
    12231222            Assert(cbCorbBuf % sizeof(uint32_t) == 0);
    1224 
    12251223            pThis->pu32CorbBuf = (uint32_t *)RTMemAllocZ(cbCorbBuf);
    1226             pThis->cbCorbBuf   = cbCorbBuf;
    1227         }
     1224            AssertStmt(pThis->pu32CorbBuf, cbCorbBuf = 0);
     1225        }
     1226
     1227        pThis->cbCorbBuf = cbCorbBuf;
    12281228    }
    12291229
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