VirtualBox

Changeset 40361 in vbox


Ignore:
Timestamp:
Mar 5, 2012 4:25:09 PM (13 years ago)
Author:
vboxsync
Message:

GuestProperties/API: never send property change events with NULL strings.

Location:
trunk/src/VBox
Files:
2 edited

Legend:

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

    r39242 r40361  
    11481148        /* Send out a host notification */
    11491149        if (RT_SUCCESS(rc))
    1150             rc = notifyHost(pszProperty, NULL, u64Timestamp, NULL);
     1150            rc = notifyHost(pszProperty, "", u64Timestamp, "");
    11511151    }
    11521152    LogFlowThisFunc(("returning\n"));
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r40257 r40361  
    53525352            /** @todo r=bird: Why aren't we leaving the lock here?  The
    53535353             *                same code in PushGuestProperty does... */
    5354             mParent->onGuestPropertyChange(mData->mUuid, aName, aValue, aFlags);
     5354            mParent->onGuestPropertyChange(mData->mUuid, aName,
     5355                                           aValue ? aValue : Bstr("").raw(),
     5356                                           aFlags ? aFlags : Bstr("").raw());
    53555357        }
    53565358    }
     
    1191911921
    1192011922    CheckComArgStrNotEmptyOrNull(aName);
    11921     CheckComArgMaybeNull(aValue);
    11922     CheckComArgMaybeNull(aFlags);
     11923    CheckComArgNotNull(aValue);
     11924    CheckComArgNotNull(aFlags);
    1192311925
    1192411926    try
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