Changeset 81220 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Oct 11, 2019 8:19:05 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibClipboard.cpp
r81212 r81220 774 774 Msg.pvFilter.SetPtr(pOpenParms->pszFilter, pOpenParms->cbFilter); 775 775 Msg.cbPath.SetUInt32(pOpenParms->cbPath); 776 Msg.pvFilter.SetPtr(pOpenParms->pszPath, pOpenParms->cbPath); 776 Msg.pvPath.SetPtr(pOpenParms->pszPath, pOpenParms->cbPath); 777 Msg.uHandle.SetUInt64(0); 777 778 778 779 int rc = VbglR3HGCMCall(&Msg.hdr, sizeof(Msg)); … … 1776 1777 1777 1778 int rc; 1779 1780 bool fErrorSent = false; /* Whether an error has been reported back to the host already. */ 1778 1781 1779 1782 switch (idMsg) … … 2094 2097 { 2095 2098 rc = VbglR3ClipboardEventGetNext(idMsg, cParms, pCmdCtx, pEvent); 2099 if (RT_FAILURE(rc)) 2100 fErrorSent = true; 2096 2101 break; 2097 2102 } 2103 } 2104 2105 if ( !fErrorSent 2106 && RT_FAILURE(rc)) 2107 { 2108 /* Report error back to the host. */ 2109 int rc2 = VbglR3ClipboardWriteError(pCmdCtx->uClientID, rc); 2110 AssertRC(rc2); 2098 2111 } 2099 2112 … … 2158 2171 int rc2 = VbglR3ClipboardWriteError(pCtx->uClientID, rc); 2159 2172 AssertRC(rc2); 2160 2161 } 2173 } 2162 2174 2163 2175 LogFlowFuncLeaveRC(rc);
Note:
See TracChangeset
for help on using the changeset viewer.