VirtualBox

Changeset 73530 in vbox for trunk/src


Ignore:
Timestamp:
Aug 6, 2018 4:48:31 PM (6 years ago)
Author:
vboxsync
Message:

Audio/DSound: Check if the critical section is valid on stream destruction.

File:
1 edited

Legend:

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

    r73529 r73530  
    22122212    if (RT_SUCCESS(rc))
    22132213    {
    2214         rc = RTCritSectDelete(&pStreamDS->CritSect);
     2214        if (RTCritSectIsInitialized(&pStreamDS->CritSect))
     2215            rc = RTCritSectDelete(&pStreamDS->CritSect);
    22152216    }
    22162217
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