Changeset 102461 in vbox for trunk/src/VBox/Additions/x11
- Timestamp:
- Dec 5, 2023 8:32:38 AM (15 months ago)
- svn:sync-xref-src-repo-rev:
- 160604
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/clipboard-x11.cpp
r100676 r102461 86 86 if (RT_SUCCESS(rc)) 87 87 { 88 int rcEvent; 88 89 PSHCLEVENTPAYLOAD pPayload; 89 rc = ShClEventWait (pEvent, SHCL_TIMEOUT_DEFAULT_MS, &pPayload);90 rc = ShClEventWaitEx(pEvent, SHCL_TIMEOUT_DEFAULT_MS, &rcEvent, &pPayload); 90 91 if (RT_SUCCESS(rc)) 91 92 { … … 103 104 ShClPayloadFree(pPayload); 104 105 } 106 else /* No payload given; could happen on invalid / not-expected formats. */ 107 *pcbActual = 0; 105 108 } 109 else if (rc == VERR_SHCLPB_EVENT_FAILED) 110 rc = rcEvent; 106 111 } 107 112 } … … 547 552 if (RT_SUCCESS(rc)) 548 553 { 554 int rcEvent; 549 555 PSHCLEVENTPAYLOAD pPayload; 550 rc = ShClEventWait (pReadDataEvent, SHCL_TIMEOUT_DEFAULT_MS, &pPayload);556 rc = ShClEventWaitEx(pReadDataEvent, SHCL_TIMEOUT_DEFAULT_MS, &rcEvent, &pPayload); 551 557 if (RT_SUCCESS(rc)) 552 558 { … … 564 570 ShClPayloadFree(pPayload); 565 571 } 572 else /* No payload given; could happen on invalid / not-expected formats. */ 573 *pcbActual = 0; 566 574 } 575 else if (rc == VERR_SHCLPB_EVENT_FAILED) 576 rc = rcEvent; 567 577 } 568 578
Note:
See TracChangeset
for help on using the changeset viewer.