VirtualBox

Ignore:
Timestamp:
Jun 8, 2011 3:09:14 PM (14 years ago)
Author:
vboxsync
Message:

1 million rectangles ought to be enough for anybody...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm/VBoxMPDriver.cpp

    r36896 r37384  
    2626
    2727/* Resource list */
    28 VIDEO_ACCESS_RANGE  VBoxLegacyVGAResourceList[] = 
     28VIDEO_ACCESS_RANGE  VBoxLegacyVGAResourceList[] =
    2929{
    3030    { 0x000003B0, 0x00000000, 0x0000000C, 1, 1, 1, 0 }, /* VGA regs (0x3B0-0x3BB) */
     
    106106            ULONG vendorId = 0x80EE;
    107107            ULONG deviceId = 0xBEEF;
    108             rc = VideoPortGetAccessRanges(pExt, 0, NULL, RT_ELEMENTS(tmpRanges), tmpRanges, 
     108            rc = VideoPortGetAccessRanges(pExt, 0, NULL, RT_ELEMENTS(tmpRanges), tmpRanges,
    109109                                          &vendorId, &deviceId, &slot);
    110110        }
     
    142142    }
    143143
    144     /* @todo: pretend success to make the driver work. */
     144    /** @todo pretend success to make the driver work. */
    145145    rc = NO_ERROR;
    146146
     
    281281        }
    282282
    283         /* Returns count of supported video modes and structure size in bytes, 
     283        /* Returns count of supported video modes and structure size in bytes,
    284284         * used to allocate buffer for the following IOCTL_VIDEO_QUERY_AVAIL_MODES call.
    285285         */
     
    350350            STARTIO_IN(VIDEO_POINTER_POSITION, pPos);
    351351
    352             /*@todo: set pointer position*/
     352            /** @todo set pointer position*/
    353353            bResult = VBoxMPEnablePointer(pExt, TRUE, pStatus);
    354354            break;
     
    439439            uint32_t cRects = RequestPacket->InputBufferLength/sizeof(RTRECT);
    440440            /*Sanity check*/
    441             if (RequestPacket->InputBufferLength != cRects*sizeof(RTRECT))
     441            if (   cRects > _1M
     442                || RequestPacket->InputBufferLength != cRects * sizeof(RTRECT))
    442443            {
    443444                pStatus->Status = ERROR_INSUFFICIENT_BUFFER;
     
    487488        case IOCTL_VIDEO_HGSMI_HANDLER_DISABLE:
    488489        {
    489             /* @todo: not implemented */
     490            /** @todo not implemented */
    490491            break;
    491492        }
     
    519520}
    520521
    521 /* Called to set out hardware into desired power state, not supported at the moment. 
     522/* Called to set out hardware into desired power state, not supported at the moment.
    522523 * Required to return NO_ERROR always.
    523524 */
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