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/VBoxDispD3D.cpp

    r72010 r72621  
    291291static HRESULT vboxWddmDalNotifyChange(PVBOXWDDMDISP_DEVICE pDevice)
    292292{
     293    if (!pDevice->DefaultContext.ContextInfo.hContext)
     294        return E_FAIL;
     295
    293296    VBOXWDDMDISP_NSCADD NscAdd = { NULL }; /* Shuts up MSC. */
    294297    BOOL bReinitRenderData = TRUE;
     
    471474        else
    472475        {
    473             WARN(("vboxWddmDalNotifyChange failed %#x", hr));
     476            // WARN(("vboxWddmDalNotifyChange failed %#x", hr));
    474477            if (pAlloc->DirtyAllocListEntry.pNext)
    475478                vboxWddmDalRemove(pAlloc);
     
    749752    if (cAllocsKm == Buf.SwapchainInfo.SwapchainInfo.cAllocs)
    750753    {
     754        AssertReturn(pDevice->DefaultContext.ContextInfo.hContext, E_FAIL);
     755
    751756        D3DDDICB_ESCAPE DdiEscape = {0};
    752757        DdiEscape.hContext = pDevice->DefaultContext.ContextInfo.hContext;
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