VirtualBox

Changeset 77664 in vbox


Ignore:
Timestamp:
Mar 12, 2019 1:59:49 PM (6 years ago)
Author:
vboxsync
Message:

Audio/DevIchAc97.cpp: Timer description strings must be static when using PDMDevHlpTMTimerCreate().

File:
1 edited

Legend:

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

    r76881 r77664  
    44744474    if (RT_SUCCESS(rc))
    44754475    {
     4476        static const char * const s_apszNames[] =
     4477        {
     4478            "AC97 PI", "AC97 PO", "AC97 MC"
     4479        };
     4480        AssertCompile(RT_ELEMENTS(s_apszNames) == AC97_MAX_STREAMS);
     4481
    44764482        for (unsigned i = 0; i < AC97_MAX_STREAMS; i++)
    44774483        {
     
    44824488             *        instead of the LPIB registers.
    44834489             */
    4484             char szTimer[16];
    4485             RTStrPrintf2(szTimer, sizeof(szTimer), "AC97SD%i", i);
    4486 
    44874490            rc = PDMDevHlpTMTimerCreate(pDevIns, TMCLOCK_VIRTUAL_SYNC, ichac97R3Timer, &pThis->aStreams[i],
    4488                                         TMTIMER_FLAGS_NO_CRIT_SECT, szTimer, &pThis->pTimerR3[i]);
     4491                                        TMTIMER_FLAGS_NO_CRIT_SECT, s_apszNames[i], &pThis->pTimerR3[i]);
    44894492            AssertRCReturn(rc, rc);
    44904493            pThis->pTimerR0[i] = TMTimerR0Ptr(pThis->pTimerR3[i]);
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