Changeset 100434 in vbox
- Timestamp:
- Jul 7, 2023 11:55:21 AM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/SharedClipboard/ClipboardStreamImpl-win.cpp
r100204 r100434 186 186 int rc; 187 187 188 if ( m_hObj == NIL_SHCLOBJHANDLE 189 && m_pTransfer->ProviderIface.pfnObjOpen) 188 if (m_hObj == NIL_SHCLOBJHANDLE) 190 189 { 191 190 SHCLOBJOPENCREATEPARMS openParms; … … 198 197 rc = RTStrCopy(openParms.pszPath, openParms.cbPath, m_strPath.c_str()); 199 198 if (RT_SUCCESS(rc)) 200 { 201 rc = m_pTransfer->ProviderIface.pfnObjOpen(&m_pTransfer->ProviderCtx, &openParms, &m_hObj); 202 } 199 rc = ShClTransferObjOpen(m_pTransfer, &openParms, &m_hObj); 203 200 204 201 ShClTransferObjOpenParmsDestroy(&openParms); … … 217 214 if (cbToRead) 218 215 { 219 rc = m_pTransfer->ProviderIface.pfnObjRead(&m_pTransfer->ProviderCtx, m_hObj, 220 pvBuffer, cbToRead, 0 /* fFlags */, &cbRead); 216 rc = ShClTransferObjRead(m_pTransfer, m_hObj, pvBuffer, cbToRead, 0 /* fFlags */, &cbRead); 221 217 if (RT_SUCCESS(rc)) 222 218 { … … 231 227 if (m_fIsComplete) 232 228 { 233 if (m_pTransfer->ProviderIface.pfnObjClose) 234 { 235 int rc2 = m_pTransfer->ProviderIface.pfnObjClose(&m_pTransfer->ProviderCtx, m_hObj); 236 AssertRC(rc2); 237 } 229 rc = ShClTransferObjClose(m_pTransfer, m_hObj); 238 230 239 231 if (m_pParent)
Note:
See TracChangeset
for help on using the changeset viewer.