VirtualBox

Ignore:
Timestamp:
Oct 28, 2020 2:00:58 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
141127
Message:

Shared Clipboard/X11: First unregister, then uninit context for testcase. bugref:9848

Location:
trunk/src/VBox/GuestHost/SharedClipboard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-x11.cpp

    r86717 r86737  
    336336    AssertPtrReturnVoid(pCtx);
    337337
    338     Widget widget = pCtx->pWidget;
    339     AssertPtrReturnVoid(widget);
     338    Widget pWidget = pCtx->pWidget;
     339    AssertPtrReturnVoid(pWidget);
    340340
    341341    bool fFound = false;
    342342    for (unsigned i = 0; i < RT_ELEMENTS(g_aContexts); ++i)
    343343    {
    344         Assert(!fFound || g_aContexts[i].pWidget != widget);
    345         if (g_aContexts[i].pWidget == widget)
     344        Assert(!fFound || g_aContexts[i].pWidget != pWidget);
     345        if (g_aContexts[i].pWidget == pWidget)
    346346        {
    347347            Assert(g_aContexts[i].pCtx != NULL);
     
    11831183#ifdef TESTCASE
    11841184    /** @todo The testcases currently do not utilize the threading code. So uninit stuff here. */
     1185    clipUnregisterContext(pCtx);
    11851186    clipUninitInternal(pCtx);
    1186     clipUnregisterContext(pCtx);
    11871187#endif
    11881188
  • trunk/src/VBox/GuestHost/SharedClipboard/testcase/tstClipboardGH-X11.cpp

    r86712 r86737  
    915915
    916916    ShClX11Destroy(&X11Ctx);
    917     /* Note: Doing this twice is intentional. */
    918     ShClX11Destroy(&X11Ctx);
    919917
    920918    return RTTestSummaryAndDestroy(hTest);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette