Changeset 78619 in vbox for trunk/src/VBox
- Timestamp:
- May 21, 2019 8:42:35 AM (6 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedClipboard
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-x11.cpp
r78618 r78619 551 551 AssertRCReturn(rc, 1); 552 552 rc = VBoxClipboardSvcImplConnect(&client, false); 553 CLIPBACKEND *pBackend = client. pCtx->pBackend;553 CLIPBACKEND *pBackend = client.State.pCtx->pBackend; 554 554 AssertRCReturn(rc, 1); 555 555 VBoxClipboardSvcImplFormatAnnounce(&client, … … 561 561 } 562 562 pBackend->readData.rc = VINF_SUCCESS; 563 client. asyncRead.callHandle = (VBOXHGCMCALLHANDLE)pBackend;564 client. asyncRead.paParms = (VBOXHGCMSVCPARM *)&client;563 client.State.asyncRead.callHandle = (VBOXHGCMCALLHANDLE)pBackend; 564 client.State.asyncRead.paParms = (VBOXHGCMSVCPARM *)&client; 565 565 uint32_t u32Dummy; 566 566 rc = VBoxClipboardSvcImplReadData(&client, VBOX_SHARED_CLIPBOARD_FMT_UNICODETEXT, … … 586 586 else 587 587 { 588 ClipCompleteDataRequestFromX11(client. pCtx, VERR_NO_DATA,588 ClipCompleteDataRequestFromX11(client.State.pCtx, VERR_NO_DATA, 589 589 pBackend->readData.pReq, NULL, 43); 590 590 if ( pBackend->completeRead.rc != VERR_NO_DATA … … 604 604 pBackend->writeData.format = 1234; 605 605 pBackend->reportData.format = 4321; /* XX this should be handled! */ 606 rc = ClipRequestDataForX11(client. pCtx, 23, &pv, &cb);606 rc = ClipRequestDataForX11(client.State.pCtx, 23, &pv, &cb); 607 607 if ( rc != VINF_SUCCESS 608 608 || strcmp((const char *)pv, "testing") != 0 … … 615 615 RTMemFree(pv); 616 616 pBackend->writeData.timeout = true; 617 rc = ClipRequestDataForX11(client. pCtx, 23, &pv, &cb);617 rc = ClipRequestDataForX11(client.State.pCtx, 23, &pv, &cb); 618 618 if (rc != VERR_TIMEOUT) 619 619 { … … 624 624 pBackend->writeData.cb = 0; 625 625 pBackend->writeData.timeout = false; 626 rc = ClipRequestDataForX11(client. pCtx, 23, &pv, &cb);626 rc = ClipRequestDataForX11(client.State.pCtx, 23, &pv, &cb); 627 627 if (rc != VERR_NO_DATA) 628 628 { -
trunk/src/VBox/HostServices/SharedClipboard/testcase/tstClipboardServiceHost.cpp
r78618 r78619 16 16 */ 17 17 18 #include "../VBox Clipboard.h"18 #include "../VBoxSharedClipboardSvc-internal.h" 19 19 20 20 #include <VBox/HostServices/VBoxClipboardSvc.h>
Note:
See TracChangeset
for help on using the changeset viewer.