From da48cfa158f0535a9df7b7115e450ca56ae273b6 Mon Sep 17 00:00:00 2001 From: Ben Adams Date: Tue, 8 Jan 2019 22:37:23 +0000 Subject: [PATCH] Feedback Commit migrated from https://github.com/dotnet/corefx/commit/c82d211923fe5a2bd6381f717df951cf4c11dbf0 --- .../src/System/IO/FileSystemWatcher.OSX.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/libraries/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.OSX.cs b/src/libraries/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.OSX.cs index 992b425..c1cc285 100644 --- a/src/libraries/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.OSX.cs +++ b/src/libraries/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.OSX.cs @@ -386,12 +386,9 @@ namespace System.IO private unsafe void ProcessEvent(int numEvents, byte** eventPaths, - [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 2)] Interop.EventStream.FSEventStreamEventFlags[] eventFlags, - [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 2)] FSEventStreamEventId[] eventIds, - FileSystemWatcher watcher - ) + FileSystemWatcher watcher) { // Since renames come in pairs, when we find the first we need to search for the next one. Once we find it, we'll add it to this // list so when the for-loop comes across it, we'll skip it since it's already been processed as part of the original of the pair. -- 2.7.4