- 時間撮記:
- 2011-12-14 上午11:12:56 (13 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp
r38514 r39603 1657 1657 case VBVA_VDMA_CMD: 1658 1658 { 1659 if (cbBuffer < VBoxSHGSMIBufferHeaderSize() + sizeof (VBOXVDMACBUF_DR)) 1660 { 1661 rc = VERR_INVALID_PARAMETER; 1662 break; 1663 } 1659 1664 PVBOXVDMACBUF_DR pCmd = (PVBOXVDMACBUF_DR)VBoxSHGSMIBufferData ((PVBOXSHGSMIHEADER)pvBuffer); 1660 vboxVDMACommand(pVGAState->pVdma, pCmd );1665 vboxVDMACommand(pVGAState->pVdma, pCmd, cbBuffer - VBoxSHGSMIBufferHeaderSize()); 1661 1666 rc = VINF_SUCCESS; 1662 1667 break; … … 1664 1669 case VBVA_VDMA_CTL: 1665 1670 { 1671 if (cbBuffer < VBoxSHGSMIBufferHeaderSize() + sizeof (VBOXVDMA_CTL)) 1672 { 1673 rc = VERR_INVALID_PARAMETER; 1674 break; 1675 } 1666 1676 PVBOXVDMA_CTL pCmd = (PVBOXVDMA_CTL)VBoxSHGSMIBufferData ((PVBOXSHGSMIHEADER)pvBuffer); 1667 vboxVDMAControl(pVGAState->pVdma, pCmd );1677 vboxVDMAControl(pVGAState->pVdma, pCmd, cbBuffer - VBoxSHGSMIBufferHeaderSize()); 1668 1678 rc = VINF_SUCCESS; 1669 1679 break;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器