VirtualBox

Changeset 83240 in vbox


Ignore:
Timestamp:
Mar 10, 2020 10:14:40 AM (5 years ago)
Author:
vboxsync
Message:

Audio/Win: Added ability to register/unregister the IMMNotificationClient interface at runtime.

File:
1 edited

Legend:

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

    r82968 r83240  
    25832583    if (pThis->m_pNotificationClient)
    25842584    {
    2585         pThis->m_pNotificationClient->Dispose();
     2585        pThis->m_pNotificationClient->Unregister();
    25862586        pThis->m_pNotificationClient->Release();
    25872587
     
    26832683
    26842684            HRESULT hr = pThis->m_pNotificationClient->Initialize();
     2685            if (SUCCEEDED(hr))
     2686                hr = pThis->m_pNotificationClient->Register();
     2687
    26852688            if (FAILED(hr))
    26862689                rc = VERR_AUDIO_BACKEND_INIT_FAILED;
     
    26882691        catch (std::bad_alloc &ex)
    26892692        {
    2690             NOREF(ex);
     2693            RT_NOREF(ex);
    26912694            rc = VERR_NO_MEMORY;
    26922695        }
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