VirtualBox

Changeset 23143 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 18, 2009 4:05:46 PM (15 years ago)
Author:
vboxsync
Message:

VBoxTray: Modified logic for checking the host version. Now checks in every case (empty, value!=0) but "0".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxHostVersion.cpp

    r23115 r23143  
    6565    {
    6666        if (rc == VERR_NOT_FOUND)
    67             rc = VERR_NOT_SUPPORTED; /* If we don't find the value above this is not critical */
     67            rc = VINF_SUCCESS; /* If we don't find the value above we do the check by default */
    6868        else
    6969            Log(("VBoxTray: Could not read check host version flag! rc = %d\n", rc));
     
    7171    else
    7272    {
    73         if (pszCheckHostVersion && atoi(pszCheckHostVersion) <= 0)
     73        /* Only don't do the check if we have a valid "0" in it */
     74        if (   atoi(pszCheckHostVersion) == 0
     75            && strlen(pszCheckHostVersion))
     76        {
    7477            rc = VERR_NOT_SUPPORTED;
     78        }
    7579        VbglR3GuestPropReadValueFree(pszCheckHostVersion);
    7680    }
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