- Timestamp:
- Oct 1, 2020 2:44:33 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/log/tracelogwriter.cpp
r82968 r86387 859 859 RTDECL(int) RTTraceLogWrDestroy(RTTRACELOGWR hTraceLogWr) 860 860 { 861 if (hTraceLogWr == NIL_RTTRACELOGWR) 862 return VINF_SUCCESS; 861 863 PRTTRACELOGWRINT pThis = hTraceLogWr; 862 864 AssertPtrReturn(pThis, VERR_INVALID_HANDLE); 865 AssertReturn(pThis->u32Magic == RTTRACELOGWR_MAGIC, VERR_INVALID_HANDLE); 863 866 864 867 pThis->u32Magic = RTTRACELOGWR_MAGIC_DEAD; … … 875 878 PRTTRACELOGWRINT pThis = hTraceLogWr; 876 879 AssertPtrReturn(pThis, VERR_INVALID_HANDLE); 880 AssertReturn(pThis->u32Magic == RTTRACELOGWR_MAGIC, VERR_INVALID_HANDLE); 877 881 AssertPtrReturn(pEvtDesc, VERR_INVALID_POINTER); 878 882 … … 887 891 PRTTRACELOGWRINT pThis = hTraceLogWr; 888 892 AssertPtrReturn(pThis, VERR_INVALID_HANDLE); 893 AssertReturn(pThis->u32Magic == RTTRACELOGWR_MAGIC, VERR_INVALID_HANDLE); 889 894 890 895 int rc = VINF_SUCCESS; … … 920 925 PRTTRACELOGWRINT pThis = hTraceLogWr; 921 926 AssertPtrReturn(pThis, VERR_INVALID_HANDLE); 927 AssertReturn(pThis->u32Magic == RTTRACELOGWR_MAGIC, VERR_INVALID_HANDLE); 922 928 923 929 int rc = VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.