- Timestamp:
- Mar 28, 2009 3:38:02 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPLib.cpp
r18372 r18450 747 747 static int supR3LoggerSettings(SUPLOGGER enmWhich, uint32_t fWhat, const char *pszFlags, const char *pszGroups, const char *pszDest) 748 748 { 749 size_t const cchFlags = pszFlags ?strlen(pszFlags) : 0;750 size_t const cchGroups = pszGroups ?strlen(pszGroups) : 0;751 size_t const cchDest = pszDest ?strlen(pszDest) : 0;752 size_t const cbStrTab = cchFlags + !!cchFlags753 + cchGroups + !!cchGroups754 + cchDest + !!cchDest755 + (!cchFlags && !cchGroups && !cchDest);749 uint32_t const cchFlags = pszFlags ? (uint32_t)strlen(pszFlags) : 0; 750 uint32_t const cchGroups = pszGroups ? (uint32_t)strlen(pszGroups) : 0; 751 uint32_t const cchDest = pszDest ? (uint32_t)strlen(pszDest) : 0; 752 uint32_t const cbStrTab = cchFlags + !!cchFlags 753 + cchGroups + !!cchGroups 754 + cchDest + !!cchDest 755 + (!cchFlags && !cchGroups && !cchDest); 756 756 757 757 PSUPLOGGERSETTINGS pReq = (PSUPLOGGERSETTINGS)alloca(SUP_IOCTL_LOGGER_SETTINGS_SIZE(cbStrTab));
Note:
See TracChangeset
for help on using the changeset viewer.