Changeset 29321 in vbox for trunk/src/VBox/Devices
- Timestamp:
- May 11, 2010 9:56:58 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VMMDev/VMMDev.cpp
r29307 r29321 1772 1772 else 1773 1773 { 1774 pRequestHeader->rc = PGMR3SharedModuleRegister( pVM, pReqModule->enmGuestOS, pReqModule->GCBaseAddr, pReqModule->cbModule,1775 pReqModule-> szName, pReqModule->szVersion,1774 pRequestHeader->rc = PGMR3SharedModuleRegister(PDMDevHlpGetVM(pDevIns), pReqModule->enmGuestOS, pReqModule->szName, pReqModule->szVersion, 1775 pReqModule->GCBaseAddr, pReqModule->cbModule, 1776 1776 pReqModule->cRegions, pReqModule->aRegions); 1777 1777 } … … 1783 1783 VMMDevSharedModuleUnregistrationRequest *pReqModule = (VMMDevSharedModuleUnregistrationRequest *)pRequestHeader; 1784 1784 1785 if (pRequestHeader->size != sizeof(VMMDevSharedModuleUnregistrationRequest) 1786 { 1787 pRequestHeader->rc = VERR_INVALID_PARAMETER; 1788 } 1789 else 1790 { 1791 pRequestHeader->rc = PGMR3SharedModuleUnregister( pVM, pReqModule->GCBaseAddr, pReqModule->cbModule,1792 pReqModule-> szName, pReqModule->szVersion);1785 if (pRequestHeader->size != sizeof(VMMDevSharedModuleUnregistrationRequest)) 1786 { 1787 pRequestHeader->rc = VERR_INVALID_PARAMETER; 1788 } 1789 else 1790 { 1791 pRequestHeader->rc = PGMR3SharedModuleUnregister(PDMDevHlpGetVM(pDevIns), pReqModule->szName, pReqModule->szVersion, 1792 pReqModule->GCBaseAddr, pReqModule->cbModule); 1793 1793 } 1794 1794 break; … … 1799 1799 VMMDevSharedModuleCheckRequest *pReqModule = (VMMDevSharedModuleCheckRequest *)pRequestHeader; 1800 1800 1801 if (pRequestHeader->size != sizeof(VMMDevSharedModuleCheckRequest) 1802 { 1803 pRequestHeader->rc = VERR_INVALID_PARAMETER; 1804 } 1805 else 1806 { 1807 pRequestHeader->rc = PGMR3SharedModuleCheck(pVM);1801 if (pRequestHeader->size != sizeof(VMMDevSharedModuleCheckRequest)) 1802 { 1803 pRequestHeader->rc = VERR_INVALID_PARAMETER; 1804 } 1805 else 1806 { 1807 pRequestHeader->rc = VERR_NOT_IMPLEMENTED; /** todo remove case */ 1808 1808 } 1809 1809 break; … … 1814 1814 VMMDevPageSharingStatusRequest *pReqStatus = (VMMDevPageSharingStatusRequest *)pRequestHeader; 1815 1815 1816 if (pRequestHeader->size != sizeof(VMMDevPageSharingStatusRequest) 1816 if (pRequestHeader->size != sizeof(VMMDevPageSharingStatusRequest)) 1817 1817 { 1818 1818 pRequestHeader->rc = VERR_INVALID_PARAMETER;
Note:
See TracChangeset
for help on using the changeset viewer.