VirtualBox

Changeset 70221 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 19, 2017 2:00:01 PM (7 years ago)
Author:
vboxsync
Message:

Backed out r119656 as it was not the fix I asked for.

Location:
trunk/src/VBox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/GuestProperties/service.cpp

    r70108 r70221  
    619619    {
    620620        char szFlags[GUEST_PROP_MAX_FLAGS_LEN];
    621         rc = GuestPropWriteFlags(pProp->mFlags, szFlags, sizeof(szFlags));
     621        rc = GuestPropWriteFlags(pProp->mFlags, szFlags);
    622622        if (RT_SUCCESS(rc))
    623623        {
     
    857857
    858858    char            szFlags[GUEST_PROP_MAX_FLAGS_LEN];
    859     int rc = GuestPropWriteFlags(pProp->mFlags, szFlags, sizeof(szFlags));
     859    int rc = GuestPropWriteFlags(pProp->mFlags, szFlags);
    860860    if (RT_FAILURE(rc))
    861861        return rc;
     
    10161016    {
    10171017        char szFlags[GUEST_PROP_MAX_FLAGS_LEN];
    1018         rc = GuestPropWriteFlags(prop.mFlags, szFlags, sizeof(szFlags));
     1018        rc = GuestPropWriteFlags(prop.mFlags, szFlags);
    10191019        if (RT_SUCCESS(rc))
    10201020        {
     
    12151215            /* Send out a host notification */
    12161216            const char *pszValue = prop.mValue.c_str();
    1217             rc = GuestPropWriteFlags(prop.mFlags, szFlags, sizeof(szFlags));
     1217            rc = GuestPropWriteFlags(prop.mFlags, szFlags);
    12181218            if (RT_SUCCESS(rc))
    12191219                rc = notifyHost(pszProperty, pszValue, u64Timestamp, szFlags);
     
    14061406
    14071407    char szFlags[GUEST_PROP_MAX_FLAGS_LEN];
    1408     int rc = GuestPropWriteFlags(pProp->mFlags, szFlags, sizeof(szFlags));
     1408    int rc = GuestPropWriteFlags(pProp->mFlags, szFlags);
    14091409    if (RT_FAILURE(rc))
    14101410        RTStrPrintf(szFlags, sizeof(szFlags), "???");
  • trunk/src/VBox/HostServices/GuestProperties/testcase/tstGuestPropSvc.cpp

    r70108 r70221  
    120120        if (RT_SUCCESS(rc))
    121121        {
    122             rc = GuestPropWriteFlags(fFlags, pszFlagBuffer, GUEST_PROP_MAX_FLAGS_LEN);
     122            rc = GuestPropWriteFlags(fFlags, pszFlagBuffer);
    123123            if (RT_FAILURE(rc))
    124124                RTTestIFailed("Failed to convert flag string '%s' back to a string.",
     
    159159        RTTestISub("Rejection of an invalid flags field");
    160160        /* This is required to fail. */
    161         if (RT_SUCCESS(GuestPropWriteFlags(u32BadFlags, pszFlagBuffer, GUEST_PROP_MAX_FLAGS_LEN)))
     161        if (RT_SUCCESS(GuestPropWriteFlags(u32BadFlags, pszFlagBuffer)))
    162162        {
    163163            RTTestIFailed("Flags 0x%x were incorrectly written out as '%.*s'\n",
     
    828828    {
    829829        char szFlags[GUEST_PROP_MAX_FLAGS_LEN];
    830         if (RT_FAILURE(GuestPropWriteFlags(fFlags, szFlags, sizeof(szFlags))))
     830        if (RT_FAILURE(GuestPropWriteFlags(fFlags, szFlags)))
    831831            RTTestIFailed("Failed to set the global flags.");
    832832        else
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r70130 r70221  
    59765976    {
    59775977        char szFlags[GUEST_PROP_MAX_FLAGS_LEN];
    5978         if (RT_FAILURE(GuestPropWriteFlags(fFlags, szFlags, sizeof(szFlags))))
     5978        if (RT_FAILURE(GuestPropWriteFlags(fFlags, szFlags)))
    59795979            Log(("Failed to set the global flags.\n"));
    59805980        else
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r70108 r70221  
    56555655        aValue = it->second.strValue;
    56565656        *aTimestamp = it->second.mTimestamp;
    5657         GuestPropWriteFlags(it->second.mFlags, szFlags, sizeof(szFlags));
     5657        GuestPropWriteFlags(it->second.mFlags, szFlags);
    56585658        aFlags = Utf8Str(szFlags);
    56595659    }
     
    59375937        aValues[i] = it->second.strValue;
    59385938        aTimestamps[i] = it->second.mTimestamp;
    5939         GuestPropWriteFlags(it->second.mFlags, szFlags, sizeof(szFlags));
     5939        GuestPropWriteFlags(it->second.mFlags, szFlags);
    59405940        aFlags[i] = Utf8Str(szFlags);
    59415941    }
     
    1045310453            prop.timestamp = property.mTimestamp;
    1045410454            char szFlags[GUEST_PROP_MAX_FLAGS_LEN + 1];
    10455             GuestPropWriteFlags(property.mFlags, szFlags, sizeof(szFlags));
     10455            GuestPropWriteFlags(property.mFlags, szFlags);
    1045610456            prop.strFlags = szFlags;
    1045710457
     
    1353813538        if (it->second.mFlags)
    1353913539        {
    13540             GuestPropWriteFlags(it->second.mFlags, szFlags, sizeof(szFlags));
     13540            GuestPropWriteFlags(it->second.mFlags, szFlags);
    1354113541            aFlags[i] = szFlags;
    1354213542        }
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