VirtualBox

Ignore:
Timestamp:
May 24, 2019 1:15:59 PM (6 years ago)
Author:
vboxsync
Message:

Shared Clipboard/URI: Update.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/SharedClipboard/ClipboardStreamImpl-win.cpp

    r78474 r78725  
    4646
    4747
    48 VBoxClipboardWinStreamImpl::VBoxClipboardWinStreamImpl(void)
     48VBoxClipboardWinStreamImpl::VBoxClipboardWinStreamImpl(SharedClipboardProvider *pProvider)
    4949    : m_lRefCount(1)
    50 {
    51 
     50    , m_pProvider(pProvider)
     51{
     52    m_pProvider->AddRef();
    5253}
    5354
    5455VBoxClipboardWinStreamImpl::~VBoxClipboardWinStreamImpl(void)
    5556{
     57    m_pProvider->Release();
    5658}
    5759
     
    212214 */
    213215
     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 */
    214223/* static */
    215 HRESULT VBoxClipboardWinStreamImpl::Create(IStream **ppStream)
    216 {
    217     VBoxClipboardWinStreamImpl *pStream = new VBoxClipboardWinStreamImpl();
     224HRESULT VBoxClipboardWinStreamImpl::Create(SharedClipboardProvider *pProvider, IStream **ppStream)
     225{
     226    VBoxClipboardWinStreamImpl *pStream = new VBoxClipboardWinStreamImpl(pProvider);
    218227    if (pStream)
    219228    {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette