Closed maxbrunsfeld closed 7 years ago
I would like to get test coverage on this, but I don't know how, and it's a simple enough change that I think it's ok to proceed without it, unless someone can think of a practical way to create a test.
/cc @ungb
Fixes https://github.com/atom/atom/issues/15223
Apparently, when listening for changes to folders on SMB drives, the
GetOverlappedResult
API can succeed (return true) but set thenumberOfBytesTransferred
parameter to zero. Previously, our code was expecting that ifGetOverlappedResult
returned true, then there would always be at least oneFILE_NOTIFY_INFORMATION
structure to read.