VirtualBox

Ignore:
Timestamp:
Jun 20, 2018 11:27:14 AM (7 years ago)
Author:
vboxsync
Message:

WDDM: display driver: handle the case when VBOXWDDMDISP_DEVICE::DefaultContext is not initialized

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxD3DIf.cpp

    r69500 r72621  
    846846        {
    847847            Assert(hostId);
     848            Assert(pDevice->DefaultContext.ContextInfo.hContext);
    848849
    849850            VBOXDISPIFESCAPE Data;
     
    876877}
    877878
    878 int vboxD3DIfSetHostId(PVBOXWDDMDISP_ALLOCATION pAlloc, uint32_t hostID, uint32_t *pHostID)
     879static int vboxD3DIfSetHostId(PVBOXWDDMDISP_ALLOCATION pAlloc, uint32_t hostID, uint32_t *pHostID)
    879880{
    880881    struct VBOXWDDMDISP_RESOURCE *pRc = pAlloc->pRc;
    881882    PVBOXWDDMDISP_DEVICE pDevice = pRc->pDevice;
     883
     884    AssertReturn(pDevice->DefaultContext.ContextInfo.hContext, VERR_GENERAL_FAILURE);
    882885
    883886    VBOXDISPIFESCAPE_SETALLOCHOSTID SetHostID = {0};
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