VirtualBox

Changeset 18450 in vbox for trunk/src


Ignore:
Timestamp:
Mar 28, 2009 3:38:02 AM (16 years ago)
Author:
vboxsync
Message:

supR3LoggerSettings: warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPLib.cpp

    r18372 r18450  
    747747static int supR3LoggerSettings(SUPLOGGER enmWhich, uint32_t fWhat, const char *pszFlags, const char *pszGroups, const char *pszDest)
    748748{
    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  + !!cchFlags
    753                            + cchGroups + !!cchGroups
    754                            + cchDest   + !!cchDest
    755                            + (!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);
    756756
    757757    PSUPLOGGERSETTINGS pReq  = (PSUPLOGGERSETTINGS)alloca(SUP_IOCTL_LOGGER_SETTINGS_SIZE(cbStrTab));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette