VirtualBox

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


Ignore:
Timestamp:
Sep 30, 2020 8:53:36 PM (4 years ago)
Author:
vboxsync
Message:

SharedClipboard/testcase: shClSvcClientInit is implied in table.pfnConnect, so don't do it twice or it'll trigger memory leak detection. bugref:9841

File:
1 edited

Legend:

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

    r85980 r86364  
    150150    RTTESTI_CHECK_RC_OK(rc);
    151151
    152     rc = shClSvcClientInit(&g_Client, 1 /* clientId */);
    153     RTTESTI_CHECK_RC_OK(rc);
    154152
    155153    RTTestISub("Testing one format, waiting guest call.");
     154    RT_ZERO(g_Client);
    156155    HGCMSvcSetU32(&parms[0], 0);
    157156    HGCMSvcSetU32(&parms[1], 0);
     
    170169
    171170    RTTestISub("Testing one format, no waiting guest calls.");
     171    RT_ZERO(g_Client);
    172172    table.pfnConnect(NULL, 1 /* clientId */, &g_Client, 0, 0);
    173173    testMsgAddReadData(&g_Client, VBOX_SHCL_FMT_HTML);
     
    185185
    186186    RTTestISub("Testing two formats, waiting guest call.");
     187    RT_ZERO(g_Client);
    187188    table.pfnConnect(NULL, 1 /* clientId */, &g_Client, 0, 0);
    188189    HGCMSvcSetU32(&parms[0], 0);
     
    206207
    207208    RTTestISub("Testing two formats, no waiting guest calls.");
     209    RT_ZERO(g_Client);
    208210    table.pfnConnect(NULL, 1 /* clientId */, &g_Client, 0, 0);
    209211    testMsgAddReadData(&g_Client, VBOX_SHCL_FMT_UNICODETEXT | VBOX_SHCL_FMT_HTML);
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