VirtualBox

Changeset 69146 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Oct 20, 2017 1:05:53 PM (7 years ago)
Author:
vboxsync
Message:

Devices/Graphics: VMSVGA: AllocZ for GMR array.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp

    r69137 r69146  
    47454745        Assert(pSVGAState->paGMR != NULL);
    47464746        RTMemFree(pSVGAState->paGMR);
    4747         pSVGAState->paGMR = (PGMR)RTMemAlloc(cGMR * sizeof(GMR));
     4747        pSVGAState->paGMR = (PGMR)RTMemAllocZ(cGMR * sizeof(GMR));
    47484748        AssertReturn(pSVGAState->paGMR, VERR_NO_MEMORY);
    47494749        pThis->svga.cGMR = cGMR;
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