VirtualBox

Changeset 49950 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Dec 17, 2013 10:51:16 AM (11 years ago)
Author:
vboxsync
Message:

Additions/common: !RT_SUCCESS => RT_FAILURE

Location:
trunk/src/VBox/Additions/common
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxControl/VBoxControl.cpp

    r48938 r49950  
    11771177
    11781178    rc = VbglR3GuestPropConnect(&u32ClientId);
    1179     if (!RT_SUCCESS(rc))
     1179    if (RT_FAILURE(rc))
    11801180        VBoxControlError("Failed to connect to the guest property service, error %Rrc\n", rc);
    11811181
     
    12211221        if (VERR_TOO_MUCH_DATA == rc)
    12221222            VBoxControlError("Temporarily unable to retrieve the property\n");
    1223         else if (!RT_SUCCESS(rc) && (rc != VERR_NOT_FOUND))
     1223        else if (RT_FAILURE(rc) && rc != VERR_NOT_FOUND)
    12241224            VBoxControlError("Failed to retrieve the property value, error %Rrc\n", rc);
    12251225    }
     
    12941294    int rc = VINF_SUCCESS;
    12951295    rc = VbglR3GuestPropConnect(&u32ClientId);
    1296     if (!RT_SUCCESS(rc))
     1296    if (RT_FAILURE(rc))
    12971297        VBoxControlError("Failed to connect to the guest property service, error %Rrc\n", rc);
    1298     if (RT_SUCCESS(rc))
     1298    else
    12991299    {
    13001300        if (pszFlags != NULL)
     
    13021302        else
    13031303            rc = VbglR3GuestPropWriteValue(u32ClientId, pszName, pszValue);
    1304         if (!RT_SUCCESS(rc))
     1304        if (RT_FAILURE(rc))
    13051305            VBoxControlError("Failed to store the property value, error %Rrc\n", rc);
    13061306    }
     
    13421342    uint32_t u32ClientId = 0;
    13431343    int rc = VbglR3GuestPropConnect(&u32ClientId);
    1344     if (!RT_SUCCESS(rc))
     1344    if (RT_FAILURE(rc))
    13451345        VBoxControlError("Failed to connect to the guest property service, error %Rrc\n", rc);
    1346     if (RT_SUCCESS(rc))
     1346    else
    13471347    {
    13481348        rc = VbglR3GuestPropDelete(u32ClientId, pszName);
    1349         if (!RT_SUCCESS(rc))
     1349        if (RT_FAILURE(rc))
    13501350            VBoxControlError("Failed to delete the property value, error %Rrc\n", rc);
    13511351    }
     
    14851485
    14861486    rc = VbglR3GuestPropConnect(&u32ClientId);
    1487     if (!RT_SUCCESS(rc))
     1487    if (RT_FAILURE(rc))
    14881488        VBoxControlError("Failed to connect to the guest property service, error %Rrc\n", rc);
    14891489
     
    15321532            VBoxControlError("The request timed out or was interrupted\n");
    15331533#ifndef RT_OS_WINDOWS  /* Windows guests do not do this right */
    1534         else if (!RT_SUCCESS(rc) && (rc != VERR_NOT_FOUND))
     1534        else if (RT_FAILURE(rc) && rc != VERR_NOT_FOUND)
    15351535            VBoxControlError("Failed to get a notification, error %Rrc\n", rc);
    15361536#endif
     
    16161616    uint32_t u32ClientId;
    16171617    int rc = VbglR3SharedFolderConnect(&u32ClientId);
    1618     if (!RT_SUCCESS(rc))
     1618    if (RT_FAILURE(rc))
    16191619        VBoxControlError("Failed to connect to the shared folder service, error %Rrc\n", rc);
    16201620    else
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp

    r49946 r49950  
    26462646
    26472647    int rc = VBoxGuestSetGuestCapabilities(fSessionOrCaps, fSessionNotCaps);
    2648     if (!RT_FAILURE(rc))
     2648    if (RT_FAILURE(rc))
    26492649    {
    26502650        LogRel(("VBoxGuestCommonGuestCapsAcquire: VBoxGuestSetGuestCapabilities failed, rc=%Rrc\n", rc));
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibGuestProp.cpp

    r44324 r49950  
    559559    {
    560560        int rc2 = VbglHGCMParmUInt32Get(&Msg.size, pcbBufActual);
    561         if (!RT_SUCCESS(rc2))
     561        if (RT_FAILURE(rc2))
    562562            rc = rc2;
    563563    }
     
    842842    {
    843843        rc = VbglR3GuestPropWriteValue(u32ClientId, pszName, NULL);
    844         if (!RT_SUCCESS(rc))
     844        if (RT_FAILURE(rc))
    845845            break;
    846846
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