Changeset 40879 in vbox
- Timestamp:
- Apr 11, 2012 11:02:53 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDrv-dtrace.cpp
r40878 r40879 219 219 return; 220 220 221 if (pProv->TracerData.DTrace.cProvidedProbes >= pProbeLocEnd - pProbeLoc)221 if (pProv->TracerData.DTrace.cProvidedProbes >= (uintptr_t)(pProbeLocEnd - pProbeLoc)) 222 222 return; 223 223 … … 451 451 PVTGPROBELOC pProbeLoc = (PVTGPROBELOC)pvProbe; 452 452 AssertPtrReturn(pProbeLoc, UINT64_MAX); 453 PVTGDESCPROBE pProbe = (PVTGDESCPROBE)pProbeLoc->pbProbe 453 PVTGDESCPROBE pProbe = (PVTGDESCPROBE)pProbeLoc->pbProbe; 454 454 AssertPtrReturn(pProbe, UINT64_MAX); 455 PVTGDESCARGLIST pArgList = (PVTGDESC PROBE)((uintptr_t)pProv->pHdr->paArgLists + pProbe->offArgList);455 PVTGDESCARGLIST pArgList = (PVTGDESCARGLIST)((uintptr_t)pProv->pHdr->paArgLists + pProbe->offArgList); 456 456 AssertPtrReturn(pArgList, UINT64_MAX); 457 457 … … 481 481 /* wonder if this will work... */ 482 482 uint32_t off = 0; 483 for ( uint32_t i = 5; i < iArg; i++)483 for (int i = 5; i < iArg; i++) 484 484 if ( (pArgList->aArgs[i].fType & VTG_TYPE_FIXED_SIZED) 485 485 && (pArgList->aArgs[i].fType & VTG_TYPE_SIZE_MASK) == 8) … … 487 487 u64Ret = pData->pauStackArgs[iArg - 5 + off]; 488 488 if ( (pArgList->aArgs[iArg].fType & VTG_TYPE_FIXED_SIZED) 489 && (pArgList->aArgs[iArg].fType & VTG_TYPE_SIZE_MASK) == 8 489 && (pArgList->aArgs[iArg].fType & VTG_TYPE_SIZE_MASK) == 8 ) 490 490 u64Ret |= (uint64_t)pData->pauStackArgs[iArg - 5 + off + 1] << 32; 491 491 }
Note:
See TracChangeset
for help on using the changeset viewer.