Changeset 37384 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm
- Timestamp:
- Jun 8, 2011 3:09:14 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm/VBoxMPDriver.cpp
r36896 r37384 26 26 27 27 /* Resource list */ 28 VIDEO_ACCESS_RANGE VBoxLegacyVGAResourceList[] = 28 VIDEO_ACCESS_RANGE VBoxLegacyVGAResourceList[] = 29 29 { 30 30 { 0x000003B0, 0x00000000, 0x0000000C, 1, 1, 1, 0 }, /* VGA regs (0x3B0-0x3BB) */ … … 106 106 ULONG vendorId = 0x80EE; 107 107 ULONG deviceId = 0xBEEF; 108 rc = VideoPortGetAccessRanges(pExt, 0, NULL, RT_ELEMENTS(tmpRanges), tmpRanges, 108 rc = VideoPortGetAccessRanges(pExt, 0, NULL, RT_ELEMENTS(tmpRanges), tmpRanges, 109 109 &vendorId, &deviceId, &slot); 110 110 } … … 142 142 } 143 143 144 /* @todo:pretend success to make the driver work. */144 /** @todo pretend success to make the driver work. */ 145 145 rc = NO_ERROR; 146 146 … … 281 281 } 282 282 283 /* Returns count of supported video modes and structure size in bytes, 283 /* Returns count of supported video modes and structure size in bytes, 284 284 * used to allocate buffer for the following IOCTL_VIDEO_QUERY_AVAIL_MODES call. 285 285 */ … … 350 350 STARTIO_IN(VIDEO_POINTER_POSITION, pPos); 351 351 352 /* @todo:set pointer position*/352 /** @todo set pointer position*/ 353 353 bResult = VBoxMPEnablePointer(pExt, TRUE, pStatus); 354 354 break; … … 439 439 uint32_t cRects = RequestPacket->InputBufferLength/sizeof(RTRECT); 440 440 /*Sanity check*/ 441 if (RequestPacket->InputBufferLength != cRects*sizeof(RTRECT)) 441 if ( cRects > _1M 442 || RequestPacket->InputBufferLength != cRects * sizeof(RTRECT)) 442 443 { 443 444 pStatus->Status = ERROR_INSUFFICIENT_BUFFER; … … 487 488 case IOCTL_VIDEO_HGSMI_HANDLER_DISABLE: 488 489 { 489 /* @todo:not implemented */490 /** @todo not implemented */ 490 491 break; 491 492 } … … 519 520 } 520 521 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. 522 523 * Required to return NO_ERROR always. 523 524 */
Note:
See TracChangeset
for help on using the changeset viewer.