- Timestamp:
- Nov 5, 2021 2:14:54 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc.cpp
r92017 r92239 496 496 void shClSvcMsgAdd(PSHCLCLIENT pClient, PSHCLCLIENTMSG pMsg, bool fAppend) 497 497 { 498 Assert(RTCritSectIsOwne d(&pClient->CritSect));498 Assert(RTCritSectIsOwner(&pClient->CritSect)); 499 499 AssertPtr(pMsg); 500 500 … … 522 522 int shClSvcMsgAddAndWakeupClient(PSHCLCLIENT pClient, PSHCLCLIENTMSG pMsg) 523 523 { 524 Assert(RTCritSectIsOwne d(&pClient->CritSect));524 Assert(RTCritSectIsOwner(&pClient->CritSect)); 525 525 AssertPtr(pMsg); 526 526 AssertPtr(pClient); … … 2071 2071 if (RT_SUCCESS(rc)) 2072 2072 { 2073 /* For now we ASSUME that the first client ever connectedis in charge for2074 * communicating withe the service extension.2075 *2076 * * @todo This needs to be fixed ASAP w/o breaking older guest / host combos. */2073 /* For now we ASSUME that the first client that connects is in charge for 2074 communicating with the service extension. */ 2075 /** @todo This isn't optimal, but only the guest really knows which client is in 2076 * focus on the console. See @bugref{10115} for details. */ 2077 2077 if (g_ExtState.uClientID == 0) 2078 2078 g_ExtState.uClientID = u32ClientID; 2079 2080 LogFunc(("Successfully connected client %#x\n", u32ClientID)); 2081 return rc; 2079 2082 } 2080 } 2081 2082 if (RT_FAILURE(rc)) 2083 { 2084 shClSvcClientDestroy(pClient); 2085 } 2086 2087 } 2088 2083 2084 LogFunc(("ShClBackendSync failed: %Rrc\n", rc)); 2085 ShClBackendDisconnect(pClient); 2086 } 2087 else 2088 LogFunc(("ShClBackendConnect failed: %Rrc\n", rc)); 2089 shClSvcClientDestroy(pClient); 2090 } 2091 else 2092 LogFunc(("shClSvcClientInit failed: %Rrc\n", rc)); 2089 2093 LogFlowFuncLeaveRC(rc); 2090 2094 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.