Changeset 103442 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Feb 19, 2024 1:51:37 PM (14 months ago)
- svn:sync-xref-src-repo-rev:
- 161773
- Location:
- trunk/src/VBox/Additions
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxClipboard.cpp
r103367 r103442 162 162 163 163 /** 164 * @copydoc SHCLTRANSFERCALLBACKS::pfnOnInitialize d164 * @copydoc SHCLTRANSFERCALLBACKS::pfnOnInitialize 165 165 * 166 166 * Called by ShClTransferInit via VbglR3. … … 170 170 * @thread Clipboard main thread. 171 171 */ 172 static DECLCALLBACK( void) vbtrShClTransferInitializedCallback(PSHCLTRANSFERCALLBACKCTX pCbCtx)172 static DECLCALLBACK(int) vbtrShClTransferInitializeCallback(PSHCLTRANSFERCALLBACKCTX pCbCtx) 173 173 { 174 174 LogFlowFuncEnter(); … … 209 209 210 210 LogFlowFuncLeaveRC(rc); 211 return rc; 211 212 } 212 213 … … 979 980 pCtx->CmdCtx.Transfers.Callbacks.pfnOnCreated = vbtrShClTransferCreatedCallback; 980 981 pCtx->CmdCtx.Transfers.Callbacks.pfnOnDestroy = vbtrShClTransferDestroyCallback; 981 pCtx->CmdCtx.Transfers.Callbacks.pfnOnInitialize d = vbtrShClTransferInitializedCallback;982 pCtx->CmdCtx.Transfers.Callbacks.pfnOnInitialize = vbtrShClTransferInitializeCallback; 982 983 pCtx->CmdCtx.Transfers.Callbacks.pfnOnStarted = vbtrShClTransferStartedCallback; 983 984 pCtx->CmdCtx.Transfers.Callbacks.pfnOnCompleted = vbtrShClTransferCompletedCallback; -
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibClipboard.cpp
r103365 r103442 2152 2152 int rc = ShClTransferSetProvider(pTransfer, &Provider); 2153 2153 if (RT_SUCCESS(rc)) 2154 {2155 2154 rc = ShClTransferInit(pTransfer); 2156 if (RT_SUCCESS(rc))2157 {2158 /* As soon as we report the INITIALIZED state to the host, the host can start reading stuff from the transfer.2159 * So make sure that we really are ready here. */2160 if (enmDir == SHCLTRANSFERDIR_TO_REMOTE)2161 AssertMsgStmt(ShClTransferRootsCount(pTransfer), ("No root entries set yet!\n"2162 "Those have to be present as soon we report the transfer as being INITIALIZED to the host\n"),2163 rc = VERR_WRONG_ORDER);2164 }2165 }2166 2155 2167 2156 SHCLTRANSFERID const idTransfer = ShClTransferGetID(pTransfer); -
trunk/src/VBox/Additions/x11/VBoxClient/clipboard-x11.cpp
r103365 r103442 57 57 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS_HTTP 58 58 /** 59 * @copydoc SHCLTRANSFERCALLBACKS::pfnOnInitialize d59 * @copydoc SHCLTRANSFERCALLBACKS::pfnOnInitialize 60 60 * 61 61 * @thread Clipboard main thread. 62 62 */ 63 static DECLCALLBACK( void) vbclX11OnTransferInitializedCallback(PSHCLTRANSFERCALLBACKCTX pCbCtx)63 static DECLCALLBACK(int) vbclX11OnTransferInitializeCallback(PSHCLTRANSFERCALLBACKCTX pCbCtx) 64 64 { 65 65 LogFlowFuncEnter(); … … 111 111 112 112 LogFlowFuncLeaveRC(rc); 113 return rc; 113 114 } 114 115 … … 384 385 pCtx->CmdCtx.Transfers.Callbacks.cbUser = sizeof(SHCLCONTEXT); 385 386 386 pCtx->CmdCtx.Transfers.Callbacks.pfnOnInitialize d = vbclX11OnTransferInitializedCallback;387 pCtx->CmdCtx.Transfers.Callbacks.pfnOnInitialize = vbclX11OnTransferInitializeCallback; 387 388 pCtx->CmdCtx.Transfers.Callbacks.pfnOnRegistered = vbclX11OnTransferRegisteredCallback; 388 389 pCtx->CmdCtx.Transfers.Callbacks.pfnOnUnregistered = vbclX11OnTransferUnregisteredCallback;
Note:
See TracChangeset
for help on using the changeset viewer.