============================================================================= IL_GetSize() Retrieves the number of bytes in a pidl Does not add space for zero terminators !!
| 1501 | // Does not add space for zero terminators !! |
| 1502 | // |
| 1503 | UINT IL_GetSize(LPCITEMIDLIST pidl) |
| 1504 | { |
| 1505 | |
| 1506 | LPITEMIDLIST pidlTmp; |
| 1507 | UINT cb = 0; |
| 1508 | |
| 1509 | if (!pidl) |
| 1510 | return 0; |
| 1511 | |
| 1512 | for (pidlTmp = (LPITEMIDLIST)pidl; |
| 1513 | pidlTmp->mkid.cb; |
| 1514 | pidlTmp = _IL_Next(pidlTmp)) |
| 1515 | |
| 1516 | cb += pidlTmp->mkid.cb; |
| 1517 | |
| 1518 | |
| 1519 | return cb; |
| 1520 | |
| 1521 | } |
| 1522 | |
| 1523 | |
| 1524 | //============================================================================= |
no outgoing calls
no test coverage detected