Changeset 90794 in vbox for trunk/src/VBox/Runtime/common/string
- Timestamp:
- Aug 23, 2021 1:16:11 PM (3 years ago)
- Location:
- trunk/src/VBox/Runtime/common/string
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/utf-16-latin-1.cpp
r82968 r90794 185 185 * Validate input. 186 186 */ 187 Assert (VALID_PTR(ppszString));188 Assert (VALID_PTR(pwszString));187 AssertPtr(ppszString); 188 AssertPtr(pwszString); 189 189 *ppszString = NULL; 190 190 … … 364 364 * Validate input. 365 365 */ 366 Assert (VALID_PTR(ppwszString));367 Assert (VALID_PTR(pszString));366 AssertPtr(ppwszString); 367 AssertPtr(pszString); 368 368 *ppwszString = NULL; 369 369 … … 406 406 * Validate input. 407 407 */ 408 Assert (VALID_PTR(pszString));409 Assert (VALID_PTR(ppwsz));410 Assert (!pcwc || VALID_PTR(pcwc));408 AssertPtr(pszString); 409 AssertPtr(ppwsz); 410 AssertPtrNull(pcwc); 411 411 412 412 /* -
trunk/src/VBox/Runtime/common/string/utf-16.cpp
r82968 r90794 740 740 * Validate input. 741 741 */ 742 Assert (VALID_PTR(ppszString));743 Assert (VALID_PTR(pwszString));742 AssertPtr(ppszString); 743 AssertPtr(pwszString); 744 744 *ppszString = NULL; 745 745 … … 787 787 * Validate input. 788 788 */ 789 Assert (VALID_PTR(ppszString));790 Assert (VALID_PTR(pwszString));789 AssertPtr(ppszString); 790 AssertPtr(pwszString); 791 791 *ppszString = NULL; 792 792 … … 826 826 * Validate input. 827 827 */ 828 Assert (VALID_PTR(ppszString));829 Assert (VALID_PTR(pwszString));828 AssertPtr(ppszString); 829 AssertPtr(pwszString); 830 830 *ppszString = NULL; 831 831 -
trunk/src/VBox/Runtime/common/string/utf-8.cpp
r82968 r90794 447 447 * Validate input. 448 448 */ 449 Assert (VALID_PTR(pszString));450 Assert (VALID_PTR(ppaCps));449 AssertPtr(pszString); 450 AssertPtr(ppaCps); 451 451 *ppaCps = NULL; 452 452 … … 488 488 * Validate input. 489 489 */ 490 Assert (VALID_PTR(pszString));491 Assert (VALID_PTR(ppaCps));492 Assert (!pcCps || VALID_PTR(pcCps));490 AssertPtr(pszString); 491 AssertPtr(ppaCps); 492 AssertPtrNull(pcCps); 493 493 494 494 /* … … 1007 1007 * Validate input. 1008 1008 */ 1009 Assert (VALID_PTR(ppwszString));1010 Assert (VALID_PTR(pszString));1009 AssertPtr(ppwszString); 1010 AssertPtr(pszString); 1011 1011 *ppwszString = NULL; 1012 1012 … … 1048 1048 * Validate input. 1049 1049 */ 1050 Assert (VALID_PTR(ppwszString));1051 Assert (VALID_PTR(pszString));1050 AssertPtr(ppwszString); 1051 AssertPtr(pszString); 1052 1052 *ppwszString = NULL; 1053 1053 … … 1090 1090 * Validate input. 1091 1091 */ 1092 Assert (VALID_PTR(pszString));1093 Assert (VALID_PTR(ppwsz));1094 Assert (!pcwc || VALID_PTR(pcwc));1092 AssertPtr(pszString); 1093 AssertPtr(ppwsz); 1094 AssertPtrNull(pcwc); 1095 1095 1096 1096 /* … … 1155 1155 * Validate input. 1156 1156 */ 1157 Assert (VALID_PTR(pszString));1158 Assert (VALID_PTR(ppwsz));1159 Assert (!pcwc || VALID_PTR(pcwc));1157 AssertPtr(pszString); 1158 AssertPtr(ppwsz); 1159 AssertPtrNull(pcwc); 1160 1160 1161 1161 /* … … 1311 1311 * Validate input. 1312 1312 */ 1313 Assert (VALID_PTR(ppszString));1314 Assert (VALID_PTR(pszString));1313 AssertPtr(ppszString); 1314 AssertPtr(pszString); 1315 1315 *ppszString = NULL; 1316 1316 … … 1350 1350 * Validate input. 1351 1351 */ 1352 Assert (VALID_PTR(pszString));1353 Assert (VALID_PTR(ppsz));1354 Assert (!pcch || VALID_PTR(pcch));1352 AssertPtr(pszString); 1353 AssertPtr(ppsz); 1354 AssertPtrNull(pcch); 1355 1355 1356 1356 /* … … 1504 1504 * Validate input. 1505 1505 */ 1506 Assert (VALID_PTR(ppszString));1507 Assert (VALID_PTR(pszString));1506 AssertPtr(ppszString); 1507 AssertPtr(pszString); 1508 1508 *ppszString = NULL; 1509 1509 … … 1546 1546 * Validate input. 1547 1547 */ 1548 Assert (VALID_PTR(pszString));1549 Assert (VALID_PTR(ppsz));1550 Assert (!pcch || VALID_PTR(pcch));1548 AssertPtr(pszString); 1549 AssertPtr(ppsz); 1550 AssertPtrNull(pcch); 1551 1551 1552 1552 /*
Note:
See TracChangeset
for help on using the changeset viewer.