VirtualBox

Ignore:
Timestamp:
Nov 20, 2008 10:42:07 AM (16 years ago)
Author:
vboxsync
Message:

Windows Guest Additions: VBoxService: Bugfix for writing empty values (fixes VERR_INVALID_PARAMETER).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxService/VBoxVMInfo.cpp

    r13462 r14394  
    5151    }
    5252
    53     rc = VbglR3GuestPropWriteValue(a_pCtx->iInfoSvcClientID, szKeyTemp, (a_pszValue == NULL) ? NULL : pszValue);
     53    rc = VbglR3GuestPropWriteValue(a_pCtx->iInfoSvcClientID, szKeyTemp, ((a_pszValue == NULL) || (0 == strlen(a_pszValue))) ? NULL : pszValue);
    5454    if (!RT_SUCCESS(rc))
    5555    {
     
    5858    }
    5959
    60     if (pszValue != NULL)
     60    if ((pszValue != NULL) && (strlen(a_pszValue) > 0))
    6161        Log(("vboxVMInfoThread: Property written: %s = %s\n", szKeyTemp, pszValue));
    6262    else
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