Changeset 49044 in vbox for trunk/src/VBox/Runtime/common/ldr/ldrEx.cpp
- Timestamp:
- Oct 11, 2013 1:06:28 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/ldr/ldrEx.cpp
r48935 r49044 5 5 6 6 /* 7 * Copyright (C) 2006-201 1Oracle Corporation7 * Copyright (C) 2006-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 540 540 541 541 542 RTDECL(int) RTLdrQueryProp(RTLDRMOD hLdrMod, RTLDRPROP enmProp, void *pvBuf, size_t cbBuf) 543 { 544 AssertMsgReturn(rtldrIsValid(hLdrMod), ("hLdrMod=%p\n", hLdrMod), RTLDRENDIAN_INVALID); 545 PRTLDRMODINTERNAL pMod = (PRTLDRMODINTERNAL)hLdrMod; 546 547 /* 548 * Do some pre screening of the input 549 */ 550 switch (enmProp) 551 { 552 case RTLDRPROP_UUID: 553 AssertReturn(cbBuf == sizeof(RTUUID), VERR_INVALID_PARAMETER); 554 break; 555 case RTLDRPROP_TIMESTAMP_SECONDS: 556 AssertReturn(cbBuf == sizeof(int32_t) || cbBuf == sizeof(int64_t), VERR_INVALID_PARAMETER); 557 break; 558 default: 559 AssertFailedReturn(VERR_INVALID_FUNCTION); 560 } 561 AssertPtrReturn(pvBuf, VERR_INVALID_POINTER); 562 563 /* 564 * Call the image specific worker, if there is one. 565 */ 566 if (!pMod->pOps->pfnQueryProp) 567 return VERR_NOT_SUPPORTED; 568 return pMod->pOps->pfnQueryProp(pMod, enmProp, pvBuf, cbBuf); 569 } 570 RT_EXPORT_SYMBOL(RTLdrQueryProp); 571 572 542 573 /** 543 574 * Internal method used by the IPRT debug bits.
Note:
See TracChangeset
for help on using the changeset viewer.