Changeset 78725 in vbox for trunk/src/VBox/GuestHost/SharedClipboard/ClipboardStreamImpl-win.cpp
- Timestamp:
- May 24, 2019 1:15:59 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/SharedClipboard/ClipboardStreamImpl-win.cpp
r78474 r78725 46 46 47 47 48 VBoxClipboardWinStreamImpl::VBoxClipboardWinStreamImpl( void)48 VBoxClipboardWinStreamImpl::VBoxClipboardWinStreamImpl(SharedClipboardProvider *pProvider) 49 49 : m_lRefCount(1) 50 { 51 50 , m_pProvider(pProvider) 51 { 52 m_pProvider->AddRef(); 52 53 } 53 54 54 55 VBoxClipboardWinStreamImpl::~VBoxClipboardWinStreamImpl(void) 55 56 { 57 m_pProvider->Release(); 56 58 } 57 59 … … 212 214 */ 213 215 216 /** 217 * Factory to create our own IStream implementation. 218 * 219 * @returns HRESULT 220 * @param pProvider Pointer to Shared Clipboard provider to use. 221 * @param ppStream Where to return the created stream object on success. 222 */ 214 223 /* static */ 215 HRESULT VBoxClipboardWinStreamImpl::Create( IStream **ppStream)216 { 217 VBoxClipboardWinStreamImpl *pStream = new VBoxClipboardWinStreamImpl( );224 HRESULT VBoxClipboardWinStreamImpl::Create(SharedClipboardProvider *pProvider, IStream **ppStream) 225 { 226 VBoxClipboardWinStreamImpl *pStream = new VBoxClipboardWinStreamImpl(pProvider); 218 227 if (pStream) 219 228 {
Note:
See TracChangeset
for help on using the changeset viewer.