VirtualBox

Changeset 53551 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 16, 2014 8:43:24 PM (10 years ago)
Author:
vboxsync
Message:

Devices/Graphics: replace hard-coded 64 with VBOX_VIDEO_MAX_SCREENS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp

    r53535 r53551  
    24752475            memset(pbHint, ~0, cbBuffer - sizeof(VBVAQUERYMODEHINTS));
    24762476            unsigned iHint;
    2477             for (iHint = 0; iHint < pModeHintQuery->cHintsQueried && iHint < 64;
    2478                  ++iHint)
     2477            for (iHint = 0;    iHint < pModeHintQuery->cHintsQueried
     2478                            && iHint < VBOX_VIDEO_MAX_SCREENS; ++iHint)
    24792479            {
    24802480                memcpy(pbHint, &pCtx->aModeHints[iHint],
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