VirtualBox

Changeset 89356 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 28, 2021 1:20:59 PM (4 years ago)
Author:
vboxsync
Message:

3D/VMSVGA: Fix pCmd/pGMR pointers mixup which breaks the logic of comparison

File:
1 edited

Legend:

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

    r89121 r89356  
    65086508           we do so if the new size is smaller than the current. */
    65096509        /** @todo always free the descriptor in SVGA_CMD_DEFINE_GMR2? */
    6510         if (pGMR->cbTotal / X86_PAGE_SIZE > pGMR->cMaxPages)
     6510        if (pGMR->cbTotal / X86_PAGE_SIZE > pCmd->numPages)
    65116511            vmsvgaR3GmrFree(pThisCC, pCmd->gmrId);
    65126512
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