Changeset 79120 in vbox for trunk/src/VBox/GuestHost/SharedClipboard/ClipboardProvider-VbglR3.cpp
- Timestamp:
- Jun 13, 2019 10:08:33 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/SharedClipboard/ClipboardProvider-VbglR3.cpp
r79036 r79120 65 65 } 66 66 67 int SharedClipboardProviderVbglR3::Read MetaData(const PVBOXCLIPBOARDDATAHDR pDataHdr, void *pvMeta, uint32_t cbMeta,68 uint32_t *pcbRead, uint32_t fFlags /* = 0 */)67 int SharedClipboardProviderVbglR3::ReadDataChunkk(const PVBOXCLIPBOARDDATAHDR pDataHdr, void *pvChunk, uint32_t cbChunk, 68 uint32_t *pcbRead, uint32_t fFlags /* = 0 */) 69 69 { 70 70 RT_NOREF(fFlags); … … 75 75 76 76 uint32_t cbReadTotal = 0; 77 uint32_t cbToRead = RT_MIN(pDataHdr->cbMeta, cb Meta);77 uint32_t cbToRead = RT_MIN(pDataHdr->cbMeta, cbChunk); 78 78 79 79 while (cbToRead) 80 80 { 81 81 uint32_t cbRead; 82 rc = VbglR3ClipboardReadMetaData(m_uClientID, pDataHdr, (uint8_t *)pv Meta+ cbReadTotal, cbToRead, &cbRead);82 rc = VbglR3ClipboardReadMetaData(m_uClientID, pDataHdr, (uint8_t *)pvChunk + cbReadTotal, cbToRead, &cbRead); 83 83 if (RT_FAILURE(rc)) 84 84 break; … … 99 99 } 100 100 101 int SharedClipboardProviderVbglR3::Write MetaData(const PVBOXCLIPBOARDDATAHDR pDataHdr, const void *pvMeta, uint32_t cbMeta,102 uint32_t *pcbWritten, uint32_t fFlags /* = 0 */)101 int SharedClipboardProviderVbglR3::WriteDataChunk(const PVBOXCLIPBOARDDATAHDR pDataHdr, const void *pvChunk, uint32_t cbChunk, 102 uint32_t *pcbWritten, uint32_t fFlags /* = 0 */) 103 103 { 104 104 RT_NOREF(fFlags); … … 109 109 110 110 uint32_t cbWrittenTotal = 0; 111 uint32_t cbToWrite = RT_MIN(pDataHdr->cbMeta, cb Meta);111 uint32_t cbToWrite = RT_MIN(pDataHdr->cbMeta, cbChunk); 112 112 113 113 while (cbToWrite) 114 114 { 115 115 uint32_t cbWritten; 116 rc = VbglR3ClipboardWriteMetaData(m_uClientID, pDataHdr, (uint8_t *)pv Meta+ cbWrittenTotal, cbToWrite, &cbWritten);116 rc = VbglR3ClipboardWriteMetaData(m_uClientID, pDataHdr, (uint8_t *)pvChunk + cbWrittenTotal, cbToWrite, &cbWritten); 117 117 if (RT_FAILURE(rc)) 118 118 break;
Note:
See TracChangeset
for help on using the changeset viewer.