From de627a100b97f999d2a1464f3491846d8f88b3ad Mon Sep 17 00:00:00 2001 From: Mikulas Florek Date: Sun, 25 Mar 2018 17:55:46 +0200 Subject: [PATCH] fixed rare crash --- src/editor/win/file_system_watcher.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/editor/win/file_system_watcher.cpp b/src/editor/win/file_system_watcher.cpp index b686741de..73a9b3d09 100644 --- a/src/editor/win/file_system_watcher.cpp +++ b/src/editor/win/file_system_watcher.cpp @@ -127,6 +127,7 @@ static void CALLBACK notif(DWORD status, DWORD tferred, LPOVERLAPPED over) task->m_finished = true; return; } + if (tferred == 0) return; FILE_NOTIFY_INFORMATION* info = &task->m_info[0]; while (info)