bakaid commented on a change in pull request #663: MINIFICPP-1061 Fixed.
URL: https://github.com/apache/nifi-minifi-cpp/pull/663#discussion_r333455675
##########
File path: extensions/windows-event-log/wel/WindowsEventLog.cpp
##########
@@ -121,6 +121,9 @@ std::string
WindowsEventLogHandler::getEventMessage(EVT_HANDLE eventHandle) cons
DWORD status = 0;
EvtFormatMessage(metadata_provider_, eventHandle, 0, 0, NULL,
EvtFormatMessageEvent, dwBufferSize, pBuffer.get(), &dwBufferUsed);
+ if (dwBufferUsed == 0) {
Review comment:
LGTM, nice catch.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services