Changeset 62448 in vbox for trunk/src/VBox
- Timestamp:
- Jul 22, 2016 2:51:49 PM (8 years ago)
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 37 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/asn1/asn1-ut-objid.cpp
r57358 r62448 430 430 RTAsn1MemInitAllocation(&pThis->Allocation, pAllocator); 431 431 pThis->cComponents = pSrc->cComponents; 432 #if 0 /** @todo breaks with arrays of ObjIds or structs containing them. They get resized and repositioned in memory, thus invalidating the pointer. Add recall-pointers callback, or just waste memory? Or maybe make all arrays pointer-arrays? */ 432 433 size_t cbLeft = sizeof(pThis->szObjId); 433 #if 0 /** @todo breaks with arrays of ObjIds or structs containing them. They get resized and repositioned in memory, thus invalidating the pointer. Add recall-pointers callback, or just waste memory? Or maybe make all arrays pointer-arrays? */434 434 if (pSrc->cComponents * sizeof(uint32_t) <= cbLeft) 435 435 { -
trunk/src/VBox/Runtime/common/asn1/asn1-ut-string.cpp
r57358 r62448 518 518 while (i-- > 0) 519 519 { 520 uint32_t cchMatch ;520 uint32_t cchMatch = 0; /* (MSC maybe used uninitialized) */ 521 521 PCRTISO2022MAP pMap = papMaps[i]; 522 522 /** @todo skip non-Teletex codesets if we ever add more than we need for it. */ … … 530 530 return cchMatch + 1; 531 531 } 532 else if (!ppMapRet) /* ppMapRet is NULL if Gn. */ 532 533 if (!ppMapRet) /* ppMapRet is NULL if Gn. */ 533 534 { 534 535 uint32_t iGn; … … 1033 1034 if (RT_SUCCESS(rc)) 1034 1035 { 1035 size_t cchUtf8 = 0;1036 1036 for (;;) 1037 1037 { -
trunk/src/VBox/Runtime/common/crypto/digest-builtin.cpp
r61892 r62448 639 639 static DECLCALLBACK(RTDIGESTTYPE) rtCrDigestOsslEvp_GetDigestType(void *pvState) 640 640 { 641 EVP_MD_CTX *pThis = (EVP_MD_CTX *)pvState;641 //EVP_MD_CTX *pThis = (EVP_MD_CTX *)pvState; 642 642 /** @todo figure which digest algorithm it is! */ 643 643 return RTDIGESTTYPE_UNKNOWN; -
trunk/src/VBox/Runtime/common/crypto/store-inmem.cpp
r57572 r62448 236 236 static DECLCALLBACK(int) rtCrStoreInMem_CertFindAll(void *pvProvider, PRTCRSTORECERTSEARCH pSearch) 237 237 { 238 PRTCRSTOREINMEM pThis = (PRTCRSTOREINMEM)pvProvider;239 238 pSearch->auOpaque[0] = ~(uintptr_t)pvProvider; 240 239 pSearch->auOpaque[1] = 0; -
trunk/src/VBox/Runtime/common/crypto/x509-certpaths.cpp
r59678 r62448 2653 2653 int rcLastFailure = VINF_SUCCESS; 2654 2654 uint32_t cValidPaths = 0; 2655 uint32_t iPath = 0;2656 2655 PRTCRX509CERTPATHNODE pCurLeaf; 2657 2656 RTListForEach(&pThis->LeafList, pCurLeaf, RTCRX509CERTPATHNODE, ChildListOrLeafEntry) -
trunk/src/VBox/Runtime/common/dbg/dbgcfg.cpp
r57944 r62448 1401 1401 if (RT_SUCCESS(rc2)) 1402 1402 { 1403 size_t cchCurPath = cchPath + strlen(&pszPath[cchPath]);1404 1403 for (uint32_t iSuffix = 0; papszSuffixes[iSuffix]; iSuffix++) 1405 1404 { -
trunk/src/VBox/Runtime/common/dbg/dbgmodcodeview.cpp
r60798 r62448 278 278 279 279 280 #ifdef LOG_ENABLED 280 281 /** 281 282 * Gets a name string for a subsection type. … … 325 326 return s_sz; 326 327 } 327 328 328 #endif /* LOG_ENABLED */ 329 330 331 #ifdef LOG_ENABLED 329 332 /** 330 333 * Gets a name string for a symbol type. … … 337 340 switch (enmSymType) 338 341 { 339 # define CASE_RET_STR(Name) case kCvSymType_##Name: return #Name;342 # define CASE_RET_STR(Name) case kCvSymType_##Name: return #Name; 340 343 CASE_RET_STR(Compile); 341 344 CASE_RET_STR(Register); … … 446 449 return "<unknown type>"; 447 450 } 451 #endif /* LOG_ENABLED */ 448 452 449 453 … … 739 743 /*uint32_t uEnd =*/ *uCursor.pu32++; 740 744 /*uint32_t uNext =*/ *uCursor.pu32++; 741 uint32_t cbProc =*uCursor.pu32++;745 /*uint32_t cbProc =*/ *uCursor.pu32++; 742 746 /*uint32_t offDebugStart =*/ *uCursor.pu32++; 743 747 /*uint32_t offDebugEnd =*/ *uCursor.pu32++; … … 1029 1033 { 1030 1034 PCRTCV8SRCINFO pSrcInfo = (PCRTCV8SRCINFO)&pThis->pbSrcInfo[off]; 1035 #ifdef LOG_ENABLED 1031 1036 const char *pszName = pSrcInfo->offSourceName < pThis->cbSrcStrings 1032 1037 ? &pThis->pchSrcStrings[pSrcInfo->offSourceName] : "out-of-bounds.c!"; … … 1037 1042 else 1038 1043 Log3((" %010zx #%03zu: !%#x! %#x=%s\n", off, iFile, pSrcInfo->uDigestType, pSrcInfo->offSourceName, pszName)); 1044 #endif 1039 1045 off += pSrcInfo->uDigestType == RTCV8SRCINFO_DIGEST_TYPE_MD5 ? sizeof(*pSrcInfo) : 8; 1040 1046 iFile++; … … 1121 1127 uCursor.pv = pvSubSect; 1122 1128 RTDBGMODCV_CHECK_NOMSG_RET_BF(cbSubSect >= 2 + 2 + 2 + 2 + 0 + 1); 1123 uint16_t iOverlay = *uCursor.pu16++; 1124 uint16_t iLib = *uCursor.pu16++; 1129 uint16_t iOverlay = *uCursor.pu16++; NOREF(iOverlay); 1130 uint16_t iLib = *uCursor.pu16++; NOREF(iLib); 1125 1131 uint16_t cSegs = *uCursor.pu16++; 1126 1132 pThis->uCurStyle = *uCursor.pu16++; … … 1133 1139 RTDBGMODCV_CHECK_NOMSG_RET_BF(cbSubSect >= 2 + 2 + 2 + 2 + cSegs * 12U + 1 + cchName); 1134 1140 1141 #ifdef LOG_ENABLED 1135 1142 const char *pchName = (const char *)&uCursor.pu8[cSegs * 12 + 1]; 1136 1143 Log2(("RTDbgModCv: Module: iOverlay=%#x iLib=%#x cSegs=%#x Style=%c%c (%#x) %.*s\n", iOverlay, iLib, cSegs, 1137 1144 RT_BYTE1(pThis->uCurStyle), RT_BYTE2(pThis->uCurStyle), pThis->uCurStyle, cchName, pchName)); 1145 #endif 1138 1146 RTDBGMODCV_CHECK_NOMSG_RET_BF(pThis->uCurStyle == RT_MAKE_U16('C', 'V')); 1139 1147 1148 #ifdef LOG_ENABLED 1140 1149 PCRTCVMODSEGINFO32 paSegs = (PCRTCVMODSEGINFO32)uCursor.pv; 1141 1150 for (uint16_t iSeg = 0; iSeg < cSegs; iSeg++) 1142 1151 Log2((" #%02u: %04x:%08x LB %08x\n", iSeg, paSegs[iSeg].iSeg, paSegs[iSeg].off, paSegs[iSeg].cb)); 1152 #endif 1143 1153 1144 1154 return VINF_SUCCESS; … … 1181 1191 Log2(("RTDbgModCv: SrcModule: cFiles=%u cSegs=%u\n", pHdr->cFiles, pHdr->cFiles)); 1182 1192 RTDBGMODCV_CHECK_RET_BF(cbSubSect >= cbHdr, ("cbSubSect=%#x cbHdr=%zx\n", cbSubSect, cbHdr)); 1193 #ifdef LOG_ENABLED 1183 1194 if (LogIs2Enabled()) 1184 1195 { … … 1190 1201 Log2(("RTDbgModCv: seg #%u: %#010x-%#010x\n", paidxSegs[i], paSegRanges[i].offStart, paSegRanges[i].offEnd)); 1191 1202 } 1203 #endif 1192 1204 1193 1205 /* … … 1333 1345 if (i == pHdr->cLogSegs) 1334 1346 Log2(("Group/Physical descriptors: %u\n", pHdr->cSegs - pHdr->cLogSegs)); 1335 uint16_t idx = i < pHdr->cLogSegs ? i : i - pHdr->cLogSegs;1336 1347 char szFlags[16]; 1337 1348 memset(szFlags, '-', sizeof(szFlags)); … … 1354 1365 szFlags[8] = '!', szFlags[9] = '\0'; 1355 1366 Log2((" #%02u: %#010x LB %#010x flags=%#06x ovl=%#06x group=%#06x frame=%#06x iSegName=%#06x iClassName=%#06x %s\n", 1356 i dx, paDescs[i].off, paDescs[i].cb, paDescs[i].fFlags, paDescs[i].iOverlay, paDescs[i].iGroup,1357 paDescs[i].i Frame, paDescs[i].offSegName, paDescs[i].offClassName, szFlags));1367 i < pHdr->cLogSegs ? i : i - pHdr->cLogSegs, paDescs[i].off, paDescs[i].cb, paDescs[i].fFlags, paDescs[i].iOverlay, 1368 paDescs[i].iGroup, paDescs[i].iFrame, paDescs[i].offSegName, paDescs[i].offClassName, szFlags)); 1358 1369 1359 1370 RTDBGMODCV_CHECK_NOMSG_RET_BF(paDescs[i].offSegName == UINT16_MAX || paDescs[i].offSegName < pThis->cbSegNames); … … 1613 1624 for (i = 0; i < pHdr->cSegs; i++) 1614 1625 if (paDescs[i].fFlags & RTCVSEGMAPDESC_F_ABS) 1615 paDescs[i].iGroup = (uint16_t) RTDBGSEGIDX_ABS;1626 paDescs[i].iGroup = (uint16_t)(RTDBGSEGIDX_ABS & UINT16_MAX); 1616 1627 else if ((paDescs[i].fFlags & RTCVSEGMAPDESC_F_GROUP) || fNoGroups) 1617 1628 paDescs[i].iGroup = iSeg++; … … 2045 2056 */ 2046 2057 2058 #ifdef LOG_ENABLED 2047 2059 static const char *rtDbgModCvGetCoffStorageClassName(uint8_t bStorageClass) 2048 2060 { … … 2083 2095 return s_szName; 2084 2096 } 2097 #endif /* LOG_ENABLED */ 2085 2098 2086 2099 … … 2104 2117 { 2105 2118 int rc = RTDbgModLineAdd(pThis->hCnt, pszFile, pCur->Linenumber, RTDBGSEGIDX_RVA, pCur->Type.VirtualAddress, NULL); 2106 Log4((" %#010x: %u [%Rrc]\n", pCur->Type.VirtualAddress, pCur->Linenumber, rc)); 2119 Log4((" %#010x: %u [%Rrc]\n", pCur->Type.VirtualAddress, pCur->Linenumber, rc)); NOREF(rc); 2107 2120 } 2108 2121 pCur++; -
trunk/src/VBox/Runtime/common/dbg/dbgmoddwarf.cpp
r57978 r62448 1031 1031 #if defined(LOG_ENABLED) || defined(RT_STRICT) 1032 1032 1033 # if 0 /* unused */ 1033 1034 /** 1034 1035 * Turns a tag value into a string for logging purposes. … … 1050 1051 return s_szStatic; 1051 1052 } 1053 # endif 1052 1054 1053 1055 -
trunk/src/VBox/Runtime/common/dvm/dvmmbr.cpp
r57444 r62448 216 216 bool *pfUsed) 217 217 { 218 PRTDVMFMTINTERNAL pThis = hVolMgrFmt; 219 218 NOREF(hVolMgrFmt); 220 219 NOREF(cbRange); 221 220 222 221 /* MBR uses the first sector only. */ 223 if (off < 512) 224 *pfUsed = true; 225 else 226 *pfUsed = false; 227 222 *pfUsed = off < 512; 228 223 return VINF_SUCCESS; 229 224 } -
trunk/src/VBox/Runtime/common/err/errmsg.cpp
r57926 r62448 79 79 RTDECL(PCRTSTATUSMSG) RTErrGet(int rc) 80 80 { 81 unsigned iFound = ~0 ;81 unsigned iFound = ~0U; 82 82 unsigned i; 83 83 for (i = 0; i < RT_ELEMENTS(g_aStatusMsgs) - 1; i++) -
trunk/src/VBox/Runtime/common/ldr/ldrELFRelocatable.cpp.h
r60450 r62448 241 241 const char *pszName = ELF_STR(pModElf, pSym->st_name); 242 242 RTUINTPTR ExtValue; 243 int rc = pfnGetImport(&pModElf->Core, "", pszName, ~0 , &ExtValue, pvUser);243 int rc = pfnGetImport(&pModElf->Core, "", pszName, ~0U, &ExtValue, pvUser); 244 244 AssertMsgRCReturn(rc, ("Failed to resolve '%s' rc=%Rrc\n", pszName, rc), rc); 245 245 SymValue = (Elf_Addr)ExtValue; … … 445 445 /* Try to resolve the symbol. */ 446 446 RTUINTPTR Value; 447 int rc = pfnGetImport(&pModElf->Core, "", pszName, ~0 , &Value, pvUser);447 int rc = pfnGetImport(&pModElf->Core, "", pszName, ~0U, &Value, pvUser); 448 448 if (RT_FAILURE(rc)) 449 449 { … … 747 747 */ 748 748 AssertMsgReturn(Value == (RTUINTPTR)Value, (FMT_ELF_ADDR "\n", Value), VERR_SYMBOL_VALUE_TOO_BIG); 749 rc = pfnCallback(pMod, pszName, ~0 , (RTUINTPTR)Value, pvUser);749 rc = pfnCallback(pMod, pszName, ~0U, (RTUINTPTR)Value, pvUser); 750 750 if (rc) 751 751 return rc; -
trunk/src/VBox/Runtime/common/ldr/ldrPE.cpp
r61936 r62448 673 673 && pThunk->u1.Ordinal < pModPe->cbImage) 674 674 { 675 rc = pfnGetImport(&pModPe->Core, pszModName, PE_RVA2TYPE(pvBitsR, (char*)(uintptr_t)pThunk->u1.AddressOfData + 2, const char *), 676 ~0, &Value, pvUser); 675 rc = pfnGetImport(&pModPe->Core, pszModName, 676 PE_RVA2TYPE(pvBitsR, (char*)(uintptr_t)pThunk->u1.AddressOfData + 2, const char *), 677 ~0U, &Value, pvUser); 677 678 Log4((RT_SUCCESS(rc) ? "RTLdrPE: %RTptr %s\n" : "RTLdrPE: %08RX32 %s rc=%Rrc\n", 678 679 (uint32_t)Value, PE_RVA2TYPE(pvBitsR, (char*)(uintptr_t)pThunk->u1.AddressOfData + 2, const char *), rc)); … … 713 714 714 715 /** @copydoc RTLDROPSPE::pfnResolveImports */ 715 static DECLCALLBACK(int) rtldrPEResolveImports64(PRTLDRMODPE pModPe, const void *pvBitsR, void *pvBitsW, PFNRTLDRIMPORT pfnGetImport, void *pvUser) 716 static DECLCALLBACK(int) rtldrPEResolveImports64(PRTLDRMODPE pModPe, const void *pvBitsR, void *pvBitsW, 717 PFNRTLDRIMPORT pfnGetImport, void *pvUser) 716 718 { 717 719 /* … … 766 768 /** @todo add validation of the string pointer! */ 767 769 rc = pfnGetImport(&pModPe->Core, pszModName, PE_RVA2TYPE(pvBitsR, (uintptr_t)pThunk->u1.AddressOfData + 2, const char *), 768 ~0 , &Value, pvUser);770 ~0U, &Value, pvUser); 769 771 Log4((RT_SUCCESS(rc) ? "RTLdrPE: %016RX64 %s\n" : "RTLdrPE: %016RX64 %s rc=%Rrc\n", 770 772 (uint64_t)Value, PE_RVA2TYPE(pvBitsR, (uintptr_t)pThunk->u1.AddressOfData + 2, const char *), rc)); … … 788 790 * Applies fixups. 789 791 */ 790 static int rtldrPEApplyFixups(PRTLDRMODPE pModPe, const void *pvBitsR, void *pvBitsW, RTUINTPTR BaseAddress, RTUINTPTR OldBaseAddress) 792 static int rtldrPEApplyFixups(PRTLDRMODPE pModPe, const void *pvBitsR, void *pvBitsW, RTUINTPTR BaseAddress, 793 RTUINTPTR OldBaseAddress) 791 794 { 792 795 if ( !pModPe->RelocDir.VirtualAddress … … 2037 2040 2038 2041 2042 #ifndef IPRT_WITHOUT_LDR_VERIFY 2039 2043 /** 2040 2044 * Returns the digest size for the given digest type. … … 2054 2058 } 2055 2059 } 2060 #endif 2056 2061 2057 2062 -
trunk/src/VBox/Runtime/common/log/log.cpp
r62436 r62448 474 474 475 475 va_start(args, pszFormat); 476 rtlogLoggerExVLocked(pLogger, 0, ~0 , pszFormat, args);476 rtlogLoggerExVLocked(pLogger, 0, ~0U, pszFormat, args); 477 477 va_end(args); 478 478 } … … 494 494 495 495 va_start(args, pszFormat); 496 RTLogLoggerExV(pLogger, 0, ~0 , pszFormat, args);496 RTLogLoggerExV(pLogger, 0, ~0U, pszFormat, args); 497 497 va_end(args); 498 498 } -
trunk/src/VBox/Runtime/common/math/bignum.cpp
r59747 r62448 1101 1101 { 1102 1102 RTBIGNUM_ASSERT_VALID(pLeft); 1103 if (pLeft->fNegative == ( iRight < 0))1103 if (pLeft->fNegative == (unsigned)(iRight < 0)) /* (unsigned cast is for MSC weirdness) */ 1104 1104 { 1105 1105 AssertCompile(RTBIGNUM_ELEMENT_SIZE <= sizeof(iRight)); … … 1729 1729 { 1730 1730 int rc = rtBigNumSetUsed(pBigNum, cUsed + 1); 1731 AssertRCReturn(rc, rc); 1731 1732 pBigNum->pauElements[cUsed] = uCarry; 1732 1733 } -
trunk/src/VBox/Runtime/common/net/netaddrstr2.cpp
r58438 r62448 224 224 * "::" compressed zero run. 225 225 */ 226 pszNext = NULL; /* (MSC incorrectly thinks it may be used unitialized) */ 226 227 for (iGroup = 0; iGroup < 8; ++iGroup) 227 228 { -
trunk/src/VBox/Runtime/common/path/RTPathExt.cpp
r57358 r62448 65 65 } 66 66 67 /* will never get here */ 68 return NULL; 67 /* not reached */ 69 68 } 70 69 -
trunk/src/VBox/Runtime/common/path/RTPathParse.cpp.h
r56290 r62448 209 209 210 210 /* look for an ? */ 211 uint16_t cDots = 0;212 211 uint32_t offSuffix = offStart + cchComp; 213 212 while (offSuffix-- > offStart) -
trunk/src/VBox/Runtime/common/path/RTPathParseSimple.cpp
r57358 r62448 114 114 115 115 /* will never get here */ 116 return 0;117 116 } 118 117 -
trunk/src/VBox/Runtime/common/vfs/vfsreadahead.cpp
r59827 r62448 583 583 { 584 584 585 pBufDesc->off = RTVfsIoStrmTell(pThis->hIos); 586 size_t cbRead = 0; 587 size_t cbToRead = pThis->cbBuffer; 585 pBufDesc->off = RTVfsIoStrmTell(pThis->hIos); 586 size_t cbRead = 0; 588 587 rc = RTVfsIoStrmRead(pThis->hIos, pBufDesc->pbBuffer, pThis->cbBuffer, true /*fBlocking*/, &cbRead); 589 588 if (RT_SUCCESS(rc)) -
trunk/src/VBox/Runtime/common/zip/pkzipvfs.cpp
r57372 r62448 478 478 if (RT_SUCCESS(rc)) 479 479 { 480 uint8_t *offStart = pu8Buf;481 480 pu8Buf += pThis->cdh.cbFilename; 482 481 cb = pThis->cdh.cbExtra; … … 767 766 static DECLCALLBACK(int) rtZipPkzipFssBaseObj_Close(void *pvThis) 768 767 { 769 PRTZIPPKZIPBASEOBJ pThis = (PRTZIPPKZIPBASEOBJ)pvThis; 770 768 NOREF(pvThis); 771 769 return VINF_SUCCESS; 772 770 } -
trunk/src/VBox/Runtime/common/zip/tarcmd.cpp
r59826 r62448 401 401 } 402 402 403 #if !defined(RT_OS_WINDOWS) && !defined(RT_OS_OS2) 403 404 404 405 /** … … 463 464 } 464 465 466 #endif /* !defined(RT_OS_WINDOWS) && !defined(RT_OS_OS2) */ 465 467 466 468 … … 596 598 rc, pszName); 597 599 598 const char *pszLinkType = NULL;599 600 char szTarget[RTPATH_MAX]; 600 601 szTarget[0] = '\0'; -
trunk/src/VBox/Runtime/common/zip/unzipcmd.cpp
r57358 r62448 477 477 return rtZipUnzipDoWithMembers(&Opts, rtZipUnzipCmdExtractCallback, &cFiles, &cBytes); 478 478 } 479 480 return RTEXITCODE_SUCCESS; 481 } 479 } -
trunk/src/VBox/Runtime/common/zip/zip.cpp
r60048 r62448 531 531 return zipErrConvertFromZlib(rc, true /*fCompressing*/); 532 532 } 533 return VINF_SUCCESS;534 533 } 535 534 -
trunk/src/VBox/Runtime/generic/RTPathIsSame-generic.cpp
r57358 r62448 52 52 * If the files exist, try use the attributes. 53 53 */ 54 RTFSOBJINFO ObjInfo1 , ObjInfo2;54 RTFSOBJINFO ObjInfo1; 55 55 int rc = RTPathQueryInfoEx(pszPath1, &ObjInfo1, RTFSOBJATTRADD_UNIX, RTPATH_F_ON_LINK); 56 56 if (RT_SUCCESS(rc)) 57 { 58 RTFSOBJINFO ObjInfo2; 57 59 rc = RTPathQueryInfoEx(pszPath2, &ObjInfo2, RTFSOBJATTRADD_UNIX, RTPATH_F_ON_LINK); 58 if (RT_SUCCESS(rc)) 59 { 60 if ((ObjInfo1.Attr.fMode & RTFS_TYPE_MASK) != (ObjInfo2.Attr.fMode & RTFS_TYPE_MASK)) 61 return false; 62 if (ObjInfo1.Attr.u.Unix.INodeIdDevice != ObjInfo2.Attr.u.Unix.INodeIdDevice) 63 return false; 64 if (ObjInfo1.Attr.u.Unix.INodeId != ObjInfo2.Attr.u.Unix.INodeId) 65 return false; 66 if (ObjInfo1.Attr.u.Unix.GenerationId != ObjInfo2.Attr.u.Unix.GenerationId) 67 return false; 68 if ( ObjInfo1.Attr.u.Unix.INodeIdDevice != 0 69 && ObjInfo1.Attr.u.Unix.INodeId != 0) 70 return true; 60 if (RT_SUCCESS(rc)) 61 { 62 if ((ObjInfo1.Attr.fMode & RTFS_TYPE_MASK) != (ObjInfo2.Attr.fMode & RTFS_TYPE_MASK)) 63 return false; 64 if (ObjInfo1.Attr.u.Unix.INodeIdDevice != ObjInfo2.Attr.u.Unix.INodeIdDevice) 65 return false; 66 if (ObjInfo1.Attr.u.Unix.INodeId != ObjInfo2.Attr.u.Unix.INodeId) 67 return false; 68 if (ObjInfo1.Attr.u.Unix.GenerationId != ObjInfo2.Attr.u.Unix.GenerationId) 69 return false; 70 if ( ObjInfo1.Attr.u.Unix.INodeIdDevice != 0 71 && ObjInfo1.Attr.u.Unix.INodeId != 0) 72 return true; 73 } 71 74 } 72 75 -
trunk/src/VBox/Runtime/generic/critsectrw-generic.cpp
r59039 r62448 575 575 uint32_t cNestings = ASMAtomicIncU32(&pThis->cWriteRecursions); NOREF(cNestings); 576 576 577 #ifdef IPRT_WITH_DTRACE 577 578 if (IPRT_CRITSECTRW_EXCL_ENTERED_ENABLED()) 578 579 { … … 582 583 (uint32_t)((u64State & RTCSRW_CNT_WR_MASK) >> RTCSRW_CNT_WR_SHIFT)); 583 584 } 585 #endif 584 586 return VINF_SUCCESS; 585 587 } … … 879 881 #endif 880 882 uint32_t cNestings = ASMAtomicDecU32(&pThis->cWriteRecursions); NOREF(cNestings); 883 #ifdef IPRT_WITH_DTRACE 881 884 if (IPRT_CRITSECTRW_EXCL_LEAVING_ENABLED()) 882 885 { … … 886 889 (uint32_t)((u64State & RTCSRW_CNT_WR_MASK) >> RTCSRW_CNT_WR_SHIFT)); 887 890 } 891 #endif 888 892 } 889 893 -
trunk/src/VBox/Runtime/generic/env-generic.cpp
r57835 r62448 235 235 const char * const *papszEnv; 236 236 #ifdef RTENV_HAVE_WENVIRON 237 PCRTUTF16 const * papwszEnv ;237 PCRTUTF16 const * papwszEnv = NULL; 238 238 #endif 239 239 PRTENVINTERNAL pIntEnvToClone; -
trunk/src/VBox/Runtime/generic/semrw-generic.cpp
r57358 r62448 203 203 */ 204 204 ASMAtomicWriteU32(&pThis->u32Magic, ~RTSEMRW_MAGIC); 205 pThis->cReads = ~0;205 pThis->cReads = UINT32_MAX; 206 206 207 207 /* -
trunk/src/VBox/Runtime/generic/timerlr-generic.cpp
r57358 r62448 262 262 ASMAtomicWriteU64(&pThis->u64NextTS, u64Now); 263 263 ASMAtomicWriteU64(&pThis->u64NanoInterval, u64NanoInterval); 264 int rc =RTSemEventSignal(pThis->hEvent);264 RTSemEventSignal(pThis->hEvent); 265 265 } 266 266 -
trunk/src/VBox/Runtime/r0drv/nt/ntBldSymDb.cpp
r57978 r62448 471 471 472 472 473 #if 0 473 474 /** 474 475 * Resets the writable structure members prior to processing a PDB. … … 491 492 } 492 493 } 494 #endif 493 495 494 496 … … 690 692 691 693 694 #if 0 /* unused */ 692 695 static bool strIEndsWith(const char *pszString, const char *pszSuffix) 693 696 { … … 698 701 return RTStrICmp(pszString + cchString - cchSuffix, pszSuffix) == 0; 699 702 } 703 #endif 700 704 701 705 … … 754 758 * - en_windows_8_1_symbols_debug_checked_x64_2712568 755 759 */ 756 bool fFound = false;757 760 uint32_t i = u.Split.cComps - 1; 758 761 while (i-- > 0) -
trunk/src/VBox/Runtime/r3/win/errvars-win.cpp
r57358 r62448 77 77 78 78 return pVars->ai32Vars[0] != RTERRVARS_MAGIC 79 || pVars->ai32Vars[1] != GetLastError()79 || (uint32_t)pVars->ai32Vars[1] != GetLastError() 80 80 || pVars->ai32Vars[2] != WSAGetLastError() 81 81 || pVars->ai32Vars[3] != errno; -
trunk/src/VBox/Runtime/r3/win/ldrNative-win.cpp
r61989 r62448 245 245 */ 246 246 unsigned cMatchingComponents = 0; 247 unsigned cSlashes = 0;248 247 size_t off = 0; 249 248 while (off < pUniStrResult->Length) -
trunk/src/VBox/Runtime/r3/win/localipc-win.cpp
r58305 r62448 1123 1123 else if (GetLastError() == ERROR_IO_PENDING) 1124 1124 { 1125 DWORD rcWait =WaitForSingleObject(pThis->Read.OverlappedIO.hEvent, INFINITE);1125 WaitForSingleObject(pThis->Read.OverlappedIO.hEvent, INFINITE); 1126 1126 1127 1127 RTCritSectEnter(&pThis->CritSect); … … 1553 1553 * Check for timeout. 1554 1554 */ 1555 DWORD cMsMaxWait ;1555 DWORD cMsMaxWait = INFINITE; /* (MSC maybe used uninitialized) */ 1556 1556 if (cMillies == RT_INDEFINITE_WAIT) 1557 1557 cMsMaxWait = INFINITE; -
trunk/src/VBox/Runtime/r3/win/pipe-win.cpp
r57643 r62448 127 127 } FILE_PIPE_LOCAL_INFORMATION, *PFILE_PIPE_LOCAL_INFORMATION; 128 128 129 #define FILE_PIPE_DISCONNECTED_STATE 0x00000001 130 #define FILE_PIPE_LISTENING_STATE 0x00000002 131 #define FILE_PIPE_CONNECTED_STATE 0x00000003 132 #define FILE_PIPE_CLOSING_STATE 0x00000004 133 134 #define FILE_PIPE_INBOUND 0x00000000 135 #define FILE_PIPE_OUTBOUND 0x00000001 136 #define FILE_PIPE_FULL_DUPLEX 0x00000002 137 138 #define FILE_PIPE_CLIENT_END 0x00000000 139 #define FILE_PIPE_SERVER_END 0x00000001 129 #define FILE_PIPE_DISCONNECTED_STATE 0x00000001U 130 #define FILE_PIPE_LISTENING_STATE 0x00000002U 131 #define FILE_PIPE_CONNECTED_STATE 0x00000003U 132 #define FILE_PIPE_CLOSING_STATE 0x00000004U 133 134 #define FILE_PIPE_INBOUND 0x00000000U 135 #define FILE_PIPE_OUTBOUND 0x00000001U 136 #define FILE_PIPE_FULL_DUPLEX 0x00000002U 137 138 #define FILE_PIPE_CLIENT_END 0x00000000U 139 #define FILE_PIPE_SERVER_END 0x00000001U 140 140 141 141 extern "C" NTSYSAPI NTSTATUS WINAPI NtQueryInformationFile(HANDLE, PIO_STATUS_BLOCK, PVOID, LONG, FILE_INFORMATION_CLASS); … … 858 858 HANDLE hEvent = pThis->Overlapped.hEvent; 859 859 RTCritSectLeave(&pThis->CritSect); 860 WaitForSingleObject( pThis->Overlapped.hEvent, INFINITE);860 WaitForSingleObject(hEvent, INFINITE); 861 861 RTCritSectEnter(&pThis->CritSect); 862 862 } … … 928 928 return rc; 929 929 930 #if 1 931 return VERR_NOT_IMPLEMENTED; 932 #else 930 #if 0 /** @todo r=bird: What's this? */ 933 931 int rc = rtPipeTryBlocking(pThis); 934 932 if (RT_SUCCESS(rc)) -
trunk/src/VBox/Runtime/r3/win/process-win.cpp
r60054 r62448 500 500 int rc = VINF_SUCCESS; 501 501 DWORD cbPidsAllocated = 4096; 502 DWORD cbPidsReturned ;502 DWORD cbPidsReturned = 0; /* (MSC maybe used uninitialized) */ 503 503 DWORD *paPids; 504 504 for (;;) … … 2079 2079 * UTF-16 environment block. 2080 2080 */ 2081 RTENV hEnvToUse ;2081 RTENV hEnvToUse = NIL_RTENV; /* (MSC maybe used uninitialized) */ 2082 2082 if ( !(fFlags & (RTPROC_FLAGS_PROFILE | RTPROC_FLAGS_ENV_CHANGE_RECORD)) 2083 2083 || (hEnv == RTENV_DEFAULT && !(fFlags & RTPROC_FLAGS_PROFILE)) -
trunk/src/VBox/Runtime/r3/win/sched-win.cpp
r57358 r62448 65 65 RTTHREADTYPE enmType; 66 66 /** The Win32 thread priority. */ 67 DWORD dwThreadPriority;67 int iThreadPriority; 68 68 } aTypes[RTTHREADTYPE_END]; 69 69 } PROCPRIORITY; … … 313 313 314 314 #ifdef WIN32_SCHED_ENABLED 315 if (SetThreadPriority(rtThreadNativeGetHandle(pThread), g_pProcessPriority->aTypes[enmType]. dwThreadPriority))315 if (SetThreadPriority(rtThreadNativeGetHandle(pThread), g_pProcessPriority->aTypes[enmType].iThreadPriority)) 316 316 return VINF_SUCCESS; 317 317 … … 319 319 int rc = RTErrConvertFromWin32(dwLastError); 320 320 AssertMsgFailed(("SetThreadPriority(%p, %d) failed, dwLastError=%d rc=%Rrc\n", 321 rtThreadNativeGetHandle(pThread), g_pProcessPriority->aTypes[enmType]. dwThreadPriority, dwLastError, rc));321 rtThreadNativeGetHandle(pThread), g_pProcessPriority->aTypes[enmType].iThreadPriority, dwLastError, rc)); 322 322 return rc; 323 323 #else -
trunk/src/VBox/Runtime/r3/win/timer-win.cpp
r57358 r62448 286 286 * we start the timer. 287 287 */ 288 ULONG ulMax = ~0;289 ULONG ulMin = ~0;290 ULONG ulCur = ~0;288 ULONG ulMax = UINT32_MAX; 289 ULONG ulMin = UINT32_MAX; 290 ULONG ulCur = UINT32_MAX; 291 291 NtQueryTimerResolution(&ulMax, &ulMin, &ulCur); 292 292 Log(("NtQueryTimerResolution -> ulMax=%lu00ns ulMin=%lu00ns ulCur=%lu00ns\n", ulMax, ulMin, ulCur)); … … 312 312 * Create new timer. 313 313 */ 314 int rc ;314 int rc = VERR_IPE_UNINITIALIZED_STATUS; 315 315 PRTTIMER pTimer = (PRTTIMER)RTMemAlloc(sizeof(*pTimer)); 316 316 if (pTimer) … … 326 326 if (pTimer->TimerId) 327 327 { 328 ULONG ulMax = ~0;329 ULONG ulMin = ~0;330 ULONG ulCur = ~0;328 ULONG ulMax = UINT32_MAX; 329 ULONG ulMin = UINT32_MAX; 330 ULONG ulCur = UINT32_MAX; 331 331 NtQueryTimerResolution(&ulMax, &ulMin, &ulCur); 332 332 Log(("NtQueryTimerResolution -> ulMax=%lu00ns ulMin=%lu00ns ulCur=%lu00ns\n", ulMax, ulMin, ulCur)); … … 342 342 * Create Win32 event semaphore. 343 343 */ 344 pTimer->iError 344 pTimer->iError = 0; 345 345 pTimer->hTimer = CreateWaitableTimer(NULL, TRUE, NULL); 346 346 if (pTimer->hTimer) … … 441 441 rc = RTThreadWait(pTimer->Thread, 1000, NULL); 442 442 if (RT_FAILURE(rc)) 443 TerminateThread((HANDLE)RTThreadGetNative(pTimer->Thread), -1);443 TerminateThread((HANDLE)RTThreadGetNative(pTimer->Thread), UINT32_MAX); 444 444 445 445 /* -
trunk/src/VBox/Runtime/tools/RTSignTool.cpp
r60946 r62448 648 648 }; 649 649 650 RTLDRARCH enmLdrArch = RTLDRARCH_WHATEVER;651 650 MAKETAINFOSTATE State = { 0, NULL, NULL }; 652 651
Note:
See TracChangeset
for help on using the changeset viewer.