VirtualBox

Changeset 100512 in vbox


Ignore:
Timestamp:
Jul 11, 2023 12:23:45 PM (19 months ago)
Author:
vboxsync
Message:

Shared Clipboard: Use ULONG in SharedClipboardWinDataObject::AddRef() / ::Release(). bugref:9437

File:
1 edited

Legend:

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

    r100510 r100512  
    277277STDMETHODIMP_(ULONG) SharedClipboardWinDataObject::AddRef(void)
    278278{
    279     LONG lCount = InterlockedIncrement(&m_lRefCount);
    280     LogFlowFunc(("lCount=%RI32\n", lCount));
    281     return lCount;
     279    ULONG ulCount = InterlockedIncrement(&m_lRefCount);
     280    LogFlowFunc(("lCount=%RU32\n", ulCount));
     281    return ulCount;
    282282}
    283283
    284284STDMETHODIMP_(ULONG) SharedClipboardWinDataObject::Release(void)
    285285{
    286     LONG lCount = InterlockedDecrement(&m_lRefCount);
    287     LogFlowFunc(("lCount=%RI32\n", m_lRefCount));
    288     if (lCount == 0)
     286    ULONG ulCount = InterlockedDecrement(&m_lRefCount);
     287    LogFlowFunc(("lCount=%RU32\n", ulCount));
     288    if (ulCount == 0)
    289289    {
    290290        delete this;
     
    292292    }
    293293
    294     return lCount;
     294    return ulCount;
    295295}
    296296
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