Changeset 52403 in vbox for trunk/src/VBox/Runtime/common/ldr/ldrEx.cpp
- Timestamp:
- Aug 18, 2014 8:35:32 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/ldr/ldrEx.cpp
r52213 r52403 590 590 RTDECL(int) RTLdrQueryProp(RTLDRMOD hLdrMod, RTLDRPROP enmProp, void *pvBuf, size_t cbBuf) 591 591 { 592 return RTLdrQueryPropEx(hLdrMod, enmProp, pvBuf, cbBuf, NULL);592 return RTLdrQueryPropEx(hLdrMod, enmProp, NULL /*pvBits*/, pvBuf, cbBuf, NULL); 593 593 } 594 594 RT_EXPORT_SYMBOL(RTLdrQueryProp); 595 595 596 596 597 RTDECL(int) RTLdrQueryPropEx(RTLDRMOD hLdrMod, RTLDRPROP enmProp, void *pvB uf, size_t cbBuf, size_t *pcbRet)597 RTDECL(int) RTLdrQueryPropEx(RTLDRMOD hLdrMod, RTLDRPROP enmProp, void *pvBits, void *pvBuf, size_t cbBuf, size_t *pcbRet) 598 598 { 599 599 AssertMsgReturn(rtldrIsValid(hLdrMod), ("hLdrMod=%p\n", hLdrMod), RTLDRENDIAN_INVALID); … … 629 629 AssertReturn(cbBuf == sizeof(bool), VERR_INVALID_PARAMETER); 630 630 break; 631 case RTLDRPROP_IMPORT_COUNT: 632 *pcbRet = sizeof(uint32_t); 633 AssertReturn(cbBuf == sizeof(uint32_t), VERR_INVALID_PARAMETER); 634 break; 635 case RTLDRPROP_IMPORT_MODULE: 636 *pcbRet = sizeof(uint32_t); 637 AssertReturn(cbBuf >= sizeof(uint32_t), VERR_INVALID_PARAMETER); 638 break; 631 639 632 640 default: … … 640 648 if (!pMod->pOps->pfnQueryProp) 641 649 return VERR_NOT_SUPPORTED; 642 return pMod->pOps->pfnQueryProp(pMod, enmProp, pvB uf, cbBuf, pcbRet);650 return pMod->pOps->pfnQueryProp(pMod, enmProp, pvBits, pvBuf, cbBuf, pcbRet); 643 651 } 644 652 RT_EXPORT_SYMBOL(RTLdrQueryPropEx);
Note:
See TracChangeset
for help on using the changeset viewer.