Changeset 100657 in vbox
- Timestamp:
- Jul 20, 2023 6:52:56 AM (17 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxGuestLib.h
r100533 r100657 726 726 VBGLR3DECL(int) VbglR3ClipboardEventGetNextEx(uint32_t idMsg, uint32_t cParms, PVBGLR3SHCLCMDCTX pCtx, PSHCLTRANSFERCTX pTransferCtx, PVBGLR3CLIPBOARDEVENT pEvent); 727 727 728 VBGLR3DECL(int) VbglR3ClipboardTransferS tatusReply(PVBGLR3SHCLCMDCTX pCtx, PSHCLTRANSFER pTransfer, SHCLTRANSFERSTATUS uStatus, int rcTransfer);728 VBGLR3DECL(int) VbglR3ClipboardTransferSendStatus(PVBGLR3SHCLCMDCTX pCtx, PSHCLTRANSFER pTransfer, SHCLTRANSFERSTATUS uStatus, int rcTransfer); 729 729 730 730 VBGLR3DECL(int) VbglR3ClipboardTransferRootListRead(PVBGLR3SHCLCMDCTX pCtx, PSHCLLIST *ppRootList); -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxClipboard.cpp
r100547 r100657 380 380 } 381 381 382 int rc = VbglR3ClipboardTransferS tatusReply(&pCtx->CmdCtx, pCbCtx->pTransfer, enmSts, rcCompletion);382 int rc = VbglR3ClipboardTransferSendStatus(&pCtx->CmdCtx, pCbCtx->pTransfer, enmSts, rcCompletion); 383 383 LogFlowFuncLeaveRC(rc); 384 384 } … … 407 407 } 408 408 409 int rc = VbglR3ClipboardTransferS tatusReply(&pCtx->CmdCtx, pCbCtx->pTransfer, SHCLTRANSFERSTATUS_ERROR, rcError);409 int rc = VbglR3ClipboardTransferSendStatus(&pCtx->CmdCtx, pCbCtx->pTransfer, SHCLTRANSFERSTATUS_ERROR, rcError); 410 410 LogFlowFuncLeaveRC(rc); 411 411 } -
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibClipboard.cpp
r100564 r100657 956 956 957 957 /** 958 * Replies to a transfer report fromthe host.958 * Sends a transfer status to the host. 959 959 * 960 960 * @returns VBox status code. … … 964 964 * @param rcTransfer Result code (rc) to reply. 965 965 */ 966 VBGLR3DECL(int) VbglR3ClipboardTransferS tatusReply(PVBGLR3SHCLCMDCTX pCtx, PSHCLTRANSFER pTransfer,967 966 VBGLR3DECL(int) VbglR3ClipboardTransferSendStatus(PVBGLR3SHCLCMDCTX pCtx, PSHCLTRANSFER pTransfer, 967 SHCLTRANSFERSTATUS uStatus, int rcTransfer) 968 968 { 969 969 AssertPtrReturn(pCtx, VERR_INVALID_POINTER); … … 2142 2142 2143 2143 /* Send a reply in any case. */ 2144 int rc2 = VbglR3ClipboardTransferS tatusReply(pCmdCtx, pTransfer,2145 2146 2144 int rc2 = VbglR3ClipboardTransferSendStatus(pCmdCtx, pTransfer, 2145 RT_SUCCESS(rc) 2146 ? SHCLTRANSFERSTATUS_UNINITIALIZED : SHCLTRANSFERSTATUS_ERROR, rc); 2147 2147 2148 2148 /* The host might not have the transfer around anymore at this time, so simply ignore this error. */ … … 2210 2210 2211 2211 /* Send a reply in any case. */ 2212 int rc2 = VbglR3ClipboardTransferS tatusReply(pCmdCtx, pTransfer,2213 2214 2212 int rc2 = VbglR3ClipboardTransferSendStatus(pCmdCtx, pTransfer, 2213 RT_SUCCESS(rc) 2214 ? SHCLTRANSFERSTATUS_STARTED : SHCLTRANSFERSTATUS_ERROR, rc); 2215 2215 if (RT_SUCCESS(rc)) 2216 2216 rc = rc2; … … 2250 2250 2251 2251 /* Send a reply in any case. */ 2252 int rc2 = VbglR3ClipboardTransferS tatusReply(pCmdCtx, pTransfer,2253 2254 2252 int rc2 = VbglR3ClipboardTransferSendStatus(pCmdCtx, pTransfer, 2253 RT_SUCCESS(rc) 2254 ? SHCLTRANSFERSTATUS_COMPLETED : SHCLTRANSFERSTATUS_ERROR, rc); 2255 2255 if (RT_SUCCESS(rc)) 2256 2256 rc = rc2; … … 2309 2309 * This will initialize the transfer on the host, so that in turn reports INITIALIZED 2310 2310 * back to us (see case down below).*/ 2311 int rc2 = VbglR3ClipboardTransferS tatusReply(pCmdCtx, pTransfer,2312 2313 2311 int rc2 = VbglR3ClipboardTransferSendStatus(pCmdCtx, pTransfer, 2312 RT_SUCCESS(rc) 2313 ? SHCLTRANSFERSTATUS_INITIALIZED : SHCLTRANSFERSTATUS_ERROR, rc); 2314 2314 if (RT_SUCCESS(rc)) 2315 2315 rc = rc2; … … 2346 2346 if (RT_FAILURE(rc)) 2347 2347 { 2348 int rc2 = VbglR3ClipboardTransferS tatusReply(pCmdCtx, pTransfer,2349 2348 int rc2 = VbglR3ClipboardTransferSendStatus(pCmdCtx, pTransfer, 2349 SHCLTRANSFERSTATUS_ERROR, rc); 2350 2350 AssertRC(rc2); 2351 2351 } … … 2364 2364 2365 2365 /* Send a reply in any case. */ 2366 int rc2 = VbglR3ClipboardTransferS tatusReply(pCmdCtx, pTransfer,2367 2368 2366 int rc2 = VbglR3ClipboardTransferSendStatus(pCmdCtx, pTransfer, 2367 RT_SUCCESS(rc) 2368 ? SHCLTRANSFERSTATUS_INITIALIZED : SHCLTRANSFERSTATUS_ERROR, rc); 2369 2369 if (RT_SUCCESS(rc)) 2370 2370 rc = rc2;
Note:
See TracChangeset
for help on using the changeset viewer.