Closed battlebottle closed 6 years ago
A fix for SinkWriter.GetStatistics. It's broken at the moment as the cb field of SinkWriterStatistics needs to be set to the size of the struct in bytes before passing it to the method. This is described in the documentation:
SinkWriter.GetStatistics
cb
SinkWriterStatistics
https://msdn.microsoft.com/en-us/library/windows/desktop/dd374650(v=vs.85).aspx
I'm not sure if my code represents best practice, so let me know if there's a better way to fix this than what I've done and I'll resubmit it.
Thanks
A fix for
SinkWriter.GetStatistics
. It's broken at the moment as thecb
field ofSinkWriterStatistics
needs to be set to the size of the struct in bytes before passing it to the method. This is described in the documentation:https://msdn.microsoft.com/en-us/library/windows/desktop/dd374650(v=vs.85).aspx
I'm not sure if my code represents best practice, so let me know if there's a better way to fix this than what I've done and I'll resubmit it.