Changeset 90554 in vbox
- Timestamp:
- Aug 6, 2021 3:40:59 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 146160
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioTestServiceTcp.cpp
r90176 r90554 699 699 AssertPtrReturn(pThis, VERR_NO_MEMORY); 700 700 701 *ppThis = pThis; 702 return VINF_SUCCESS; 701 int rc = RTCritSectInit(&pThis->CritSect); 702 if (RT_SUCCESS(rc)) 703 { 704 *ppThis = pThis; 705 } 706 707 return rc; 703 708 } 704 709 … … 722 727 static DECLCALLBACK(int) atsTcpStart(PATSTRANSPORTINST pThis) 723 728 { 724 int rc = RTCritSectInit(&pThis->CritSect); 725 if (RT_SUCCESS(rc) && pThis->enmMode != ATSTCPMODE_CLIENT) 729 int rc = VINF_SUCCESS; 730 731 if (pThis->enmMode != ATSTCPMODE_CLIENT) 726 732 { 727 733 rc = RTTcpServerCreateEx(pThis->szBindAddr[0] ? pThis->szBindAddr : NULL, pThis->uBindPort, &pThis->pTcpServer);
Note:
See TracChangeset
for help on using the changeset viewer.