Changeset 25000 in vbox for trunk/src/VBox/Runtime/common
- Timestamp:
- Nov 26, 2009 2:22:44 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 55308
- Location:
- trunk/src/VBox/Runtime/common
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/ldr/ldrELFRelocatable.cpp.h
r24678 r25000 489 489 */ 490 490 AssertMsgReturn(Value == (RTUINTPTR)Value, (FMT_ELF_ADDR "\n", Value), VERR_SYMBOL_VALUE_TOO_BIG); 491 intrc = pfnCallback(pMod, pszName, ~0, (RTUINTPTR)Value, pvUser);491 rc = pfnCallback(pMod, pszName, ~0, (RTUINTPTR)Value, pvUser); 492 492 if (rc) 493 493 return rc; … … 873 873 for (unsigned i = 0; i < cbName; i++, off++) 874 874 { 875 intrc = pModElf->pReader->pfnRead(pModElf->pReader, pszName + i, 1, off);875 rc = pModElf->pReader->pfnRead(pModElf->pReader, pszName + i, 1, off); 876 876 if (RT_FAILURE(rc)) 877 877 { -
trunk/src/VBox/Runtime/common/misc/handletablectx.cpp
r24181 r25000 176 176 && pThis->cCur < pThis->cMax) 177 177 { 178 uint32_t i;179 180 178 pThis->papvLevel1[iLevel1New] = paTable; 181 179 -
trunk/src/VBox/Runtime/common/misc/handletablesimple.cpp
r24181 r25000 170 170 /* link all entries into a free list. */ 171 171 Assert(!(pThis->cCur % RTHT_LEVEL2_ENTRIES)); 172 for ( uint32_ti = 0; i < RTHT_LEVEL2_ENTRIES - 1; i++)172 for (i = 0; i < RTHT_LEVEL2_ENTRIES - 1; i++) 173 173 RTHT_SET_FREE_IDX((PRTHTENTRYFREE)&paTable[i], i + 1 + pThis->cCur); 174 174 RTHT_SET_FREE_IDX((PRTHTENTRYFREE)&paTable[RTHT_LEVEL2_ENTRIES - 1], NIL_RTHT_INDEX); -
trunk/src/VBox/Runtime/common/misc/thread.cpp
r23125 r25000 136 136 * But first, we'll create the semaphore. 137 137 */ 138 intrc = RTSemRWCreate(&g_ThreadRWSem);138 rc = RTSemRWCreate(&g_ThreadRWSem); 139 139 if (RT_SUCCESS(rc)) 140 140 { -
trunk/src/VBox/Runtime/common/misc/zip.cpp
r22007 r25000 565 565 pZip->u.Zlib.next_out = (Bytef *)pvBuf; 566 566 pZip->u.Zlib.avail_out = (uInt)cbBuf; Assert(pZip->u.Zlib.avail_out == cbBuf); 567 int rc = Z_OK; 568 /* Be greedy reading input, even if no output buffer is left. It's possible 567 568 /* 569 * Be greedy reading input, even if no output buffer is left. It's possible 569 570 * that it's just the end of stream marker which needs to be read. Happens 570 * for incompressible blocks just larger than the input buffer size.*/ 571 * for incompressible blocks just larger than the input buffer size. 572 */ 571 573 while (pZip->u.Zlib.avail_out > 0 || pZip->u.Zlib.avail_in <= 0) 572 574 { … … 587 589 * Pass it on to zlib. 588 590 */ 589 rc = inflate(&pZip->u.Zlib, Z_NO_FLUSH);591 int rc = inflate(&pZip->u.Zlib, Z_NO_FLUSH); 590 592 if (rc == Z_STREAM_END) 591 593 { -
trunk/src/VBox/Runtime/common/string/strformatrt.cpp
r23961 r25000 572 572 case 'f': 573 573 { 574 char ch = *(*ppszFormat)++; 575 switch (ch) 574 switch (*(*ppszFormat)++) 576 575 { 577 576 /* … … 607 606 608 607 default: 609 AssertMsgFailed(("Invalid status code format type '%.10s'!\n", ch,pszFormatOrg));608 AssertMsgFailed(("Invalid status code format type '%.10s'!\n", pszFormatOrg)); 610 609 break; 611 610 } … … 619 618 case 'h': 620 619 { 621 char ch = *(*ppszFormat)++; 622 switch (ch) 620 switch (*(*ppszFormat)++) 623 621 { 624 622 /* … … 632 630 if (pu8) 633 631 { 634 ch = *(*ppszFormat)++; 635 switch (ch) 632 switch (*(*ppszFormat)++) 636 633 { 637 634 /* … … 687 684 688 685 default: 689 AssertMsgFailed(("Invalid status code format type '%.10s'!\n", ch,pszFormatOrg));686 AssertMsgFailed(("Invalid status code format type '%.10s'!\n", pszFormatOrg)); 690 687 break; 691 688 } … … 704 701 case 'r': 705 702 { 706 707 char ch = *(*ppszFormat)++;708 703 uint32_t hrc = va_arg(*pArgs, uint32_t); 709 704 PCRTCOMERRMSG pMsg = RTErrCOMGet(hrc); 710 switch ( ch)705 switch (*(*ppszFormat)++) 711 706 { 712 707 case 'c': … … 725 720 726 721 default: 727 AssertMsgFailed(("Invalid status code format type '%.10s'!\n", ch,pszFormatOrg));722 AssertMsgFailed(("Invalid status code format type '%.10s'!\n", pszFormatOrg)); 728 723 return 0; 729 724 … … 738 733 { 739 734 int rc = va_arg(*pArgs, int); 740 char ch = *(*ppszFormat)++;741 735 #ifdef IN_RING3 /* we don't want this anywhere else yet. */ 742 736 PCRTSTATUSMSG pMsg = RTErrGet(rc); 743 switch ( ch)737 switch (*(*ppszFormat)++) 744 738 { 745 739 case 'c': … … 756 750 } 757 751 #else /* !IN_RING3 */ 758 switch ( ch)752 switch (*(*ppszFormat)++) 759 753 { 760 754 case 'c': … … 778 772 { 779 773 long rc = va_arg(*pArgs, long); 780 char ch = *(*ppszFormat)++;781 774 # if defined(RT_OS_WINDOWS) 782 775 PCRTWINERRMSG pMsg = RTErrWinGet(rc); 783 776 # endif 784 switch ( ch)777 switch (*(*ppszFormat)++) 785 778 { 786 779 # if defined(RT_OS_WINDOWS) -
trunk/src/VBox/Runtime/common/string/utf-8.cpp
r21791 r25000 1160 1160 && !(uMask & 1)) 1161 1161 { 1162 u nsigned uch = *--puch;1162 uch = *--puch; 1163 1163 if ((uch & 0xc0) != 0x80) 1164 1164 {
Note:
See TracChangeset
for help on using the changeset viewer.