VirtualBox

Ignore:
Timestamp:
May 29, 2014 9:24:09 AM (11 years ago)
Author:
vboxsync
Message:

wddm: fix sporadic hangs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxUhgsmiBase.h

    r50984 r51457  
    145145DECLINLINE(void) vboxUhgsmiBaseDxAllocInfoFill(D3DDDI_ALLOCATIONINFO *pDdiAllocInfo, VBOXWDDM_ALLOCINFO *pAllocInfo, uint32_t cbBuffer, VBOXUHGSMI_BUFFER_TYPE_FLAGS fUhgsmiType)
    146146{
     147    memset(pDdiAllocInfo, 0, sizeof (*pDdiAllocInfo));
    147148    pDdiAllocInfo->pPrivateDriverData = pAllocInfo;
    148149    pDdiAllocInfo->PrivateDriverDataSize = sizeof (*pAllocInfo);
     150    memset(pAllocInfo, 0, sizeof (*pAllocInfo));
    149151    pAllocInfo->enmType = VBOXWDDM_ALLOC_TYPE_UMD_HGSMI_BUFFER;
    150152    pAllocInfo->cbBuffer = cbBuffer;
    151153    pAllocInfo->fUhgsmiType = fUhgsmiType;
    152 
    153154}
    154155
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