- Timestamp:
- Mar 29, 2010 12:59:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/socket.cpp
r27787 r27791 421 421 AssertPtrReturn(pThis, VERR_INVALID_HANDLE); 422 422 AssertReturn(pThis->u32Magic == RTSOCKET_MAGIC, VERR_INVALID_HANDLE); 423 AssertReturn(RTMemPoolRefCount(pThis) >= 1 + !!pThis->cUsers, VERR_CALLER_NO_REFERENCE);423 AssertReturn(RTMemPoolRefCount(pThis) >= (pThis->cUsers ? 2U : 1U), VERR_CALLER_NO_REFERENCE); 424 424 425 425 int rc = VINF_SUCCESS; … … 575 575 AssertPtrReturn(pThis, VERR_INVALID_HANDLE); 576 576 AssertReturn(pThis->u32Magic == RTSOCKET_MAGIC, VERR_INVALID_HANDLE); 577 AssertReturn(RTMemPoolRefCount(pThis) >= 1 + !!pThis->cUsers, VERR_CALLER_NO_REFERENCE);577 AssertReturn(RTMemPoolRefCount(pThis) >= (pThis->cUsers ? 2U : 1U), VERR_CALLER_NO_REFERENCE); 578 578 579 579 /* … … 616 616 AssertPtrReturn(pThis, VERR_INVALID_HANDLE); 617 617 AssertReturn(pThis->u32Magic == RTSOCKET_MAGIC, VERR_INVALID_HANDLE); 618 AssertReturn(RTMemPoolRefCount(pThis) >= 1 + !!pThis->cUsers, VERR_CALLER_NO_REFERENCE);618 AssertReturn(RTMemPoolRefCount(pThis) >= (pThis->cUsers ? 2U : 1U), VERR_CALLER_NO_REFERENCE); 619 619 AssertReturn(fRead || fWrite, VERR_INVALID_PARAMETER); 620 620 … … 686 686 AssertPtrReturn(pThis, VERR_INVALID_HANDLE); 687 687 AssertReturn(pThis->u32Magic == RTSOCKET_MAGIC, VERR_INVALID_HANDLE); 688 AssertReturn(RTMemPoolRefCount(pThis) >= 1 + !!pThis->cUsers, VERR_CALLER_NO_REFERENCE);688 AssertReturn(RTMemPoolRefCount(pThis) >= (pThis->cUsers ? 2U : 1U), VERR_CALLER_NO_REFERENCE); 689 689 690 690 /* … … 716 716 AssertPtrReturn(pThis, VERR_INVALID_HANDLE); 717 717 AssertReturn(pThis->u32Magic == RTSOCKET_MAGIC, VERR_INVALID_HANDLE); 718 AssertReturn(RTMemPoolRefCount(pThis) >= 1 + !!pThis->cUsers, VERR_CALLER_NO_REFERENCE);718 AssertReturn(RTMemPoolRefCount(pThis) >= (pThis->cUsers ? 2U : 1U), VERR_CALLER_NO_REFERENCE); 719 719 720 720 /*
Note:
See TracChangeset
for help on using the changeset viewer.