- Timestamp:
- Aug 13, 2008 7:38:37 AM (16 years ago)
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/strformat.cpp
r8619 r11376 476 476 while (--cchWidth >= cchStr) 477 477 cch += pfnOutput(pvArgOutput, " ", 1); 478 cchWidth -= cchStr; 478 479 while (cchStr-- > 0) 479 480 { … … 489 490 #endif 490 491 } 491 while (--cchWidth >= cchStr)492 while (--cchWidth >= 0) 492 493 cch += pfnOutput(pvArgOutput, " ", 1); 493 494 } … … 508 509 cch += pfnOutput(pvArgOutput, " ", 1); 509 510 511 cchWidth -= cchStr; 510 512 while (cchStr-- > 0) 511 513 { … … 519 521 #endif 520 522 } 521 while (--cchWidth >= cchStr)523 while (--cchWidth >= 0) 522 524 cch += pfnOutput(pvArgOutput, " ", 1); 523 525 } -
trunk/src/VBox/Runtime/testcase/tstStrFormat.cpp
r10905 r11376 415 415 416 416 417 cch = RTStrPrintf(szStr, sizeof(szStr), "%-10ls %-30ls %ls", L"cmd", L"args", L"description"); 418 CHECKSTR("cmd args description"); 419 420 cch = RTStrPrintf(szStr, sizeof(szStr), "%-10ls %-30ls %ls", L"cmd", L"", L"description"); 421 CHECKSTR("cmd description"); 422 423 417 424 cch = RTStrPrintf(szStr, sizeof(szStr), "%*s", 0, ""); 418 425 CHECKSTR("");
Note:
See TracChangeset
for help on using the changeset viewer.