Changeset 90789 in vbox for trunk/src/VBox/Runtime/common
- Timestamp:
- Aug 23, 2021 10:27:29 AM (3 years ago)
- Location:
- trunk/src/VBox/Runtime/common/ldr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/ldr/ldr.cpp
r82968 r90789 50 50 AssertMsgReturn(rtldrIsValid(hLdrMod), ("hLdrMod=%p\n", hLdrMod), VERR_INVALID_HANDLE); 51 51 AssertMsgReturn(pszSymbol, ("pszSymbol=%p\n", pszSymbol), VERR_INVALID_PARAMETER); 52 Assert MsgReturn(VALID_PTR(ppvValue), ("ppvValue=%p\n", ppvValue), VERR_INVALID_PARAMETER);52 AssertPtrReturn(ppvValue, VERR_INVALID_POINTER); 53 53 PRTLDRMODINTERNAL pMod = (PRTLDRMODINTERNAL)hLdrMod; 54 54 //AssertMsgReturn(pMod->eState == LDR_STATE_OPENED, ("eState=%d\n", pMod->eState), VERR_WRONG_ORDER); -
trunk/src/VBox/Runtime/common/ldr/ldrEx.cpp
r89969 r90789 279 279 */ 280 280 AssertMsgReturn(rtldrIsValid(hLdrMod), ("hLdrMod=%p\n", hLdrMod), VERR_INVALID_HANDLE); 281 Assert MsgReturn(VALID_PTR(pvBits), ("pvBits=%p\n", pvBits), VERR_INVALID_PARAMETER);282 Assert MsgReturn(VALID_PTR(pfnGetImport), ("pfnGetImport=%p\n", pfnGetImport), VERR_INVALID_PARAMETER);281 AssertPtrReturn(pvBits, VERR_INVALID_POINTER); 282 AssertPtrReturn(pfnGetImport, VERR_INVALID_POINTER); 283 283 PRTLDRMODINTERNAL pMod = (PRTLDRMODINTERNAL)hLdrMod; 284 284 AssertMsgReturn(pMod->eState == LDR_STATE_OPENED, ("eState=%d\n", pMod->eState), VERR_WRONG_ORDER); … … 395 395 AssertMsgReturn(rtldrIsValid(hLdrMod), ("hLdrMod=%p\n", hLdrMod), VERR_INVALID_HANDLE); 396 396 AssertMsgReturn(!pvBits || VALID_PTR(pvBits), ("pvBits=%p\n", pvBits), VERR_INVALID_PARAMETER); 397 Assert MsgReturn(VALID_PTR(pfnCallback), ("pfnCallback=%p\n", pfnCallback), VERR_INVALID_PARAMETER);397 AssertPtrReturn(pfnCallback, VERR_INVALID_POINTER); 398 398 PRTLDRMODINTERNAL pMod = (PRTLDRMODINTERNAL)hLdrMod; 399 399 //AssertMsgReturn(pMod->eState == LDR_STATE_OPENED, ("eState=%d\n", pMod->eState), VERR_WRONG_ORDER); … … 419 419 AssertMsgReturn(rtldrIsValid(hLdrMod), ("hLdrMod=%p\n", hLdrMod), VERR_INVALID_HANDLE); 420 420 AssertMsgReturn(!pvBits || RT_VALID_PTR(pvBits), ("pvBits=%p\n", pvBits), VERR_INVALID_PARAMETER); 421 Assert MsgReturn(RT_VALID_PTR(pfnCallback), ("pfnCallback=%p\n", pfnCallback), VERR_INVALID_PARAMETER);421 AssertPtrReturn(pfnCallback, VERR_INVALID_POINTER); 422 422 PRTLDRMODINTERNAL pMod = (PRTLDRMODINTERNAL)hLdrMod; 423 423 //AssertMsgReturn(pMod->eState == LDR_STATE_OPENED, ("eState=%d\n", pMod->eState), VERR_WRONG_ORDER); … … 447 447 */ 448 448 AssertMsgReturn(rtldrIsValid(hLdrMod), ("hLdrMod=%p\n", hLdrMod), VERR_INVALID_HANDLE); 449 Assert MsgReturn(RT_VALID_PTR(pfnCallback), ("pfnCallback=%p\n", pfnCallback), VERR_INVALID_PARAMETER);449 AssertPtrReturn(pfnCallback, VERR_INVALID_POINTER); 450 450 PRTLDRMODINTERNAL pMod = (PRTLDRMODINTERNAL)hLdrMod; 451 451 //AssertMsgReturn(pMod->eState == LDR_STATE_OPENED, ("eState=%d\n", pMod->eState), VERR_WRONG_ORDER);
Note:
See TracChangeset
for help on using the changeset viewer.