VirtualBox

Changeset 107877 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
Jan 21, 2025 5:34:24 PM (3 weeks ago)
Author:
vboxsync
Message:

Validation Kit/VKAT: Fixed a regression from r144185 (+ r144187) in VKAT / VBoxDrvAudioTest on Windows, where the PDMDrvHlpVMState() is being called within DrvHostAudioWasApi.cpp but there no (mocked) callback was installed when initializing the driver stack in vkatDriverStack.cpp. This led into crashes when switching the audio device(s) while running.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/audio/vkatDriverStack.cpp

    r106061 r107877  
    189189    RT_NOREF(pNode, pszNode, pszValidValues, pszValidNodes, pszWho, uInstance);
    190190    return VINF_SUCCESS;
     191}
     192
     193/**
     194 * @copydoc PDMDRVHLPR3::pfnVMState
     195 */
     196static DECLCALLBACK(VMSTATE) audioTestDrvHlp_VMState(PPDMDRVINS pDrvIns)
     197{
     198    RT_NOREF(pDrvIns);
     199    return VMSTATE_RUNNING; /* For mocking we report the VM state as running here. */
    191200}
    192201
     
    290299        s_DrvHlp.pfnCFGMQueryU32                = audioTestDrvHlp_CFGMR3QueryU32;
    291300        s_DrvHlp.pfnCFGMValidateConfig          = audioTestDrvHlp_CFGMR3ValidateConfig;
     301        s_DrvHlp.pfnVMState                     = audioTestDrvHlp_VMState;
    292302    }
    293303    return &s_DrvHlp;
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