VirtualBox

Changeset 100641 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
Jul 19, 2023 8:33:05 AM (19 months ago)
Author:
vboxsync
Message:

Shared Clipboard: Easier to follow event destruction handling: Destroy + de-allocate an event if its refcount reaches 0. bugref:9437

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedClipboard/testcase/tstClipboardTransfers.cpp

    r100560 r100641  
    309309    RTTESTI_CHECK_RC_OK(ShClEventSourceGenerateAndRegisterEvent(&Source, &pEvent));
    310310    ShClEventSourceReset(&Source);
    311     RTTESTI_CHECK(ShClEventSourceGetLast(&Source) != NULL); /* Event still in, as it holds a reference. */
     311    RTTESTI_CHECK(ShClEventSourceGetLast(&Source) == NULL); /* Event still valid, but removed from the source. */
    312312    RTTESTI_CHECK(ShClEventRelease(pEvent) == 0);
    313313    RTTESTI_CHECK(ShClEventRelease(pEvent) == UINT32_MAX); /* Ref count already was 0, so returns UINT32_MAX. */
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