We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2235858 commit 9a72a29Copy full SHA for 9a72a29
src/libraries/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.Win32.cs
@@ -158,7 +158,7 @@ private unsafe void Monitor(AsyncReadState state)
158
continueExecuting = Interop.Kernel32.ReadDirectoryChangesW(
159
state.DirectoryHandle,
160
state.Buffer, // the buffer is kept pinned for the duration of the sync and async operation by the PreAllocatedOverlapped
161
- _internalBufferSize,
+ (uint)state.Buffer.Length,
162
_includeSubdirectories,
163
(uint)_notifyFilters,
164
null,
0 commit comments