Changeset 102461 in vbox for trunk/src/VBox/GuestHost/SharedClipboard
- Timestamp:
- Dec 5, 2023 8:32:38 AM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/SharedClipboard/clipboard-x11.cpp
r100684 r102461 2319 2319 PSHCLEVENTPAYLOAD pPayload = NULL; 2320 2320 size_t cbResp = sizeof(SHCLX11RESPONSE); 2321 PSHCLX11RESPONSE pResp = (PSHCLX11RESPONSE)RTMemAlloc (cbResp);2321 PSHCLX11RESPONSE pResp = (PSHCLX11RESPONSE)RTMemAllocZ(cbResp); 2322 2322 if (pResp) 2323 2323 { … … 2615 2615 if (RT_SUCCESS(rc)) 2616 2616 { 2617 int rcEvent; 2617 2618 PSHCLEVENTPAYLOAD pPayload; 2618 rc = ShClEventWait (pEvent, msTimeout, &pPayload);2619 rc = ShClEventWaitEx(pEvent, msTimeout, &rcEvent, &pPayload); 2619 2620 if (RT_SUCCESS(rc)) 2620 2621 { … … 2632 2633 ShClPayloadFree(pPayload); 2633 2634 } 2635 else /* No payload given; could happen on invalid / not-expected formats. */ 2636 *pcbRead = 0; 2634 2637 } 2638 else if (rc == VERR_SHCLPB_EVENT_FAILED) 2639 rc = rcEvent; 2635 2640 } 2636 2641 }
Note:
See TracChangeset
for help on using the changeset viewer.