diff options
author | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2019-11-13 13:28:48 +0000 |
---|---|---|
committer | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2019-11-13 13:28:48 +0000 |
commit | 19f0f8f12ebaccea93eceb35b5877b362d73e3a7 (patch) | |
tree | c7e4dd8205015c7cf5921cd0c542d5c689892ecc /src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-win.cpp | |
parent | 7d8c1cf3515fb9154815f68618a2101d0e7358b9 (diff) | |
download | VirtualBox-svn-19f0f8f12ebaccea93eceb35b5877b362d73e3a7.tar.gz |
Shared Clipboard: Generalized initial (host to guest) clipboard syncing code.
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@81824 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-win.cpp')
-rw-r--r-- | src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-win.cpp | 14 |
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; |