VirtualBox

Changeset 39528 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Dec 5, 2011 12:59:05 PM (13 years ago)
Author:
vboxsync
Message:

wddm: vboxWddmSwapchainCtxEscape fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.cpp

    r39527 r39528  
    414414        if (pSwapchainInfo->SwapchainInfo.cAllocs)
    415415        {
     416            /* ensure we do not overflow the 32bit buffer size value */
     417            if (VBOXWDDM_ARRAY_MAXELEMENTSU32(PVBOXWDDM_ALLOCATION) < pSwapchainInfo->SwapchainInfo.cAllocs)
     418            {
     419                WARN(("number of allocations passed in too big (%d), max is (%d)", pSwapchainInfo->SwapchainInfo.cAllocs, VBOXWDDM_ARRAY_MAXELEMENTSU32(PVBOXWDDM_ALLOCATION)));
     420                Status = STATUS_INVALID_PARAMETER;
     421                break;
     422            }
     423
    416424            apAlloc = (PVBOXWDDM_ALLOCATION *)vboxWddmMemAlloc(sizeof (PVBOXWDDM_ALLOCATION) * pSwapchainInfo->SwapchainInfo.cAllocs);
    417425            Assert(apAlloc);
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