From 50c7b4278f72c0c794cbbf9e841029a604770f66 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Fri, 30 Oct 2020 10:12:55 -0700 Subject: [PATCH] Ignore invalid file notification events See #18953 --- src/msw/fswatcher.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/msw/fswatcher.cpp b/src/msw/fswatcher.cpp index 0692abfdfa..bd4fc64c0b 100644 --- a/src/msw/fswatcher.cpp +++ b/src/msw/fswatcher.cpp @@ -385,6 +385,8 @@ int wxIOCPThread::Native2WatcherFlags(int flags) // ignored as it should always be matched with ***_OLD_NAME { FILE_ACTION_RENAMED_NEW_NAME, 0 }, + // ignore invalid event + { 0, 0 }, }; for (unsigned int i=0; i < WXSIZEOF(flag_mapping); ++i) {