VirtualBox

Changeset 24023 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 23, 2009 11:40:50 AM (15 years ago)
Author:
vboxsync
Message:

VbglR3: Some cleanup.

File:
1 edited

Legend:

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

    r23876 r24023  
    7070 *
    7171 * @param   u32ClientId          The client id returned by VbglR3InfoSvcConnect().
    72  * @param   bUpdate              Receives pointer to boolean flag indicating whether 
     72 * @param   bUpdate              Receives pointer to boolean flag indicating whether
    7373                                 an update was found or not.
    7474 * @param   ppszHostVersion      Receives pointer of allocated version string.
     
    8686    Assert(ppszGuestVersion);
    8787
    88     /* We assume we have an update initially. 
     88    /* We assume we have an update initially.
    8989       Every block down below is allowed to veto */
    9090    *bUpdate = true;
     
    110110        }
    111111        VbglR3GuestPropReadValueFree(pszCheckHostVersion);
    112     }   
    113 
     112    }
     113
     114    /* Collect all needed information */
    114115    /* Make sure we only notify the user once by comparing the host version with
    115116     * the last checked host version (if any) */
     
    143144        }
    144145
     146        /* Look up guest version */
    145147        if (RT_SUCCESS(rc))
    146148        {
    147             /* Look up guest version */
    148149            rc = VbglR3GetAdditionsVersion(ppszGuestVersion, NULL /* Revision not needed here */);
    149         }
    150     }
    151      
     150            if (RT_FAILURE(rc))
     151                LogFlow(("Could not read VBox guest version! rc = %d\n", rc));
     152        }
     153    }
     154
    152155    /* Do the actual version comparison (if needed, see block(s) above) */
    153156    if (RT_SUCCESS(rc) && *bUpdate)
     
    202205{
    203206    Assert(u32ClientId > 0);
    204     Assert(pszVer); 
     207    Assert(pszVer);
    205208    return VbglR3GuestPropWriteValue(u32ClientId, "/VirtualBox/GuestAdd/HostVerLastChecked", pszVer);
    206209}
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