Changeset 100512 in vbox
- Timestamp:
- Jul 11, 2023 12:23:45 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/SharedClipboard/ClipboardDataObjectImpl-win.cpp
r100510 r100512 277 277 STDMETHODIMP_(ULONG) SharedClipboardWinDataObject::AddRef(void) 278 278 { 279 LONGlCount = InterlockedIncrement(&m_lRefCount);280 LogFlowFunc(("lCount=%R I32\n",lCount));281 return lCount;279 ULONG ulCount = InterlockedIncrement(&m_lRefCount); 280 LogFlowFunc(("lCount=%RU32\n", ulCount)); 281 return ulCount; 282 282 } 283 283 284 284 STDMETHODIMP_(ULONG) SharedClipboardWinDataObject::Release(void) 285 285 { 286 LONGlCount = InterlockedDecrement(&m_lRefCount);287 LogFlowFunc(("lCount=%R I32\n", m_lRefCount));288 if ( lCount == 0)286 ULONG ulCount = InterlockedDecrement(&m_lRefCount); 287 LogFlowFunc(("lCount=%RU32\n", ulCount)); 288 if (ulCount == 0) 289 289 { 290 290 delete this; … … 292 292 } 293 293 294 return lCount;294 return ulCount; 295 295 } 296 296
Note:
See TracChangeset
for help on using the changeset viewer.