From e9bd3914b58e576c8c3ef0767f61588cf29a65f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Fri, 12 Feb 2021 20:59:38 +0100 Subject: [PATCH] src: fix ETW_WRITE_EMPTY_EVENT macro A comment was written before the last line, hiding a check. --- src/node_win32_etw_provider-inl.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/node_win32_etw_provider-inl.h b/src/node_win32_etw_provider-inl.h index a7846f413a204cb..0dbd434f6b1f971 100644 --- a/src/node_win32_etw_provider-inl.h +++ b/src/node_win32_etw_provider-inl.h @@ -111,13 +111,9 @@ extern int events_enabled; dataDescriptors); \ CHECK_EQ(status, ERROR_SUCCESS); -#define ETW_WRITE_EMPTY_EVENT(eventDescriptor) \ - DWORD status = event_write(node_provider, \ - &eventDescriptor, \ - 0, \ - NULL); // NOLINT (readability/null_usage) \ - CHECK_EQ(status, ERROR_SUCCESS); - +#define ETW_WRITE_EMPTY_EVENT(eventDescriptor) \ + DWORD status = event_write(node_provider, &eventDescriptor, 0, NULL); \ + CHECK_EQ(status, ERROR_SUCCESS); // NOLINT (readability/null_usage) void NODE_HTTP_SERVER_REQUEST(node_dtrace_http_server_request_t* req, node_dtrace_connection_t* conn, const char* remote, int port,