Ignore:
Timestamp:
Jul 12, 2010, 12:57:31 AM (15 years ago)
Author:
David Azarewicz
Message:

AddBuffers reentry fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OCO/branches/DAZ/drv16/dwavestrm.cpp

    r483 r513  
    168168ULONG DWAVESTREAM::StartStream(void)
    169169{
    170 #ifdef DEBUG
    171170        dprintf(("DWAVESTREAM::StartStream"));
    172 #endif
    173171        return WAVESTREAM::StartStream();
    174172}
    175173//*****************************************************************************
    176174//*****************************************************************************
    177 void DWAVESTREAM::AddBuffers(BOOL fFirst)
     175void DWAVESTREAM::AddBuffers(SHORT sFirst)
    178176{
    179177   PSTREAMBUFFER pTemp = (PSTREAMBUFFER)qhDone.Tail();
    180178   ULONG space, Buff_left, byteswritten;
    181179
    182 #ifdef DEBUG
    183180        dprintf(("DW::AddBuffers"));
    184 #endif
    185181    if (!pTemp) pTemp = (PSTREAMBUFFER)qhInProcess.Tail();
    186182
     
    194190            return;
    195191        }
    196         if(fFirst)
     192        if(sFirst)
    197193        {
    198194             space = min(space, 4*_configinfo.ulFragsize);
     
    222218   else
    223219   {
    224      WAVESTREAM::AddBuffers(fFirst);
     220     WAVESTREAM::AddBuffers(sFirst);
    225221   }
    226222}
Note: See TracChangeset for help on using the changeset viewer.