summaryrefslogtreecommitdiff
path: root/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-win.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-win.cpp')
-rw-r--r--src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-win.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-win.cpp b/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-win.cpp
index 17c054cc6c1..c7bc4c4ff1e 100644
--- a/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-win.cpp
+++ b/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-win.cpp
@@ -659,20 +659,6 @@ int ShClSvcImplConnect(PSHCLCLIENT pClient, bool fHeadless)
pClient->State.pCtx = pCtx;
pClient->State.pCtx->pClient = pClient;
-
- /* Sync the host clipboard content with the client. */
- rc = ShClSvcImplSync(pClient);
- if (rc == VINF_NO_CHANGE)
- {
- /*
- * The sync could return VINF_NO_CHANGE if nothing has changed on the host, but older
- * Guest Additions rely on the fact that only VINF_SUCCESS indicates a successful connect
- * to the host service (instead of using RT_SUCCESS()).
- *
- * So implicitly set VINF_SUCCESS here to not break older Guest Additions.
- */
- rc = VINF_SUCCESS;
- }
}
else
rc = VERR_NO_MEMORY;