Changeset 100449 in vbox
- Timestamp:
- Jul 10, 2023 9:16:00 AM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/SharedClipboard/clipboard-win.cpp
r100448 r100449 149 149 150 150 DWORD const dwLastErr = GetLastError(); 151 int const rc = RTErrConvertFromWin32(dwLastErr); 152 if (dwLastErr != ERROR_CLIPBOARD_NOT_OPEN) /* Can happen if we didn't open the clipboard before. Just ignore this. */ 153 LogRel2(("Shared Clipboard: Clearing Windows clipboard failed with %Rrc (0x%x)\n", rc, dwLastErr)); 151 if (dwLastErr == ERROR_CLIPBOARD_NOT_OPEN) /* Can happen if we didn't open the clipboard before. Just ignore this. */ 152 return VINF_SUCCESS; 153 154 int const rc = RTErrConvertFromWin32(dwLastErr); 155 LogRel2(("Shared Clipboard: Clearing Windows clipboard failed with %Rrc (0x%x)\n", rc, dwLastErr)); 154 156 155 157 return rc; … … 1169 1171 AssertPtr(pWinURITransferCtx); 1170 1172 1173 /* If the transfer has a data object assigned, uninitialize it here. 1174 * Note: We don't free the object here, as other processes like the Windows Explorer still might refer to it. */ 1171 1175 if (pWinURITransferCtx->pDataObj) 1172 { 1173 delete pWinURITransferCtx->pDataObj; 1174 pWinURITransferCtx->pDataObj = NULL; 1175 } 1176 pWinURITransferCtx->pDataObj->Uninit(); 1176 1177 1177 1178 delete pWinURITransferCtx;
Note:
See TracChangeset
for help on using the changeset viewer.