Changeset 39528 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Dec 5, 2011 12:59:05 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.cpp
r39527 r39528 414 414 if (pSwapchainInfo->SwapchainInfo.cAllocs) 415 415 { 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 416 424 apAlloc = (PVBOXWDDM_ALLOCATION *)vboxWddmMemAlloc(sizeof (PVBOXWDDM_ALLOCATION) * pSwapchainInfo->SwapchainInfo.cAllocs); 417 425 Assert(apAlloc);
Note:
See TracChangeset
for help on using the changeset viewer.