Fix for "Monitoring" doesn't detect changes

Fix #3142, close #3882
This commit is contained in:
Jorge Rocha Gualtieri 2017-11-10 16:59:35 -02:00 committed by Don HO
parent 5719420c3b
commit 182063f31b

View File

@ -54,7 +54,7 @@ DWORD WINAPI Notepad_plus::monitorFileOnChange(void * params)
::PathRemoveFileSpecW(folderToMonitor);
const DWORD dwNotificationFlags = FILE_NOTIFY_CHANGE_LAST_WRITE | FILE_NOTIFY_CHANGE_FILE_NAME;
const DWORD dwNotificationFlags = FILE_NOTIFY_CHANGE_LAST_WRITE | FILE_NOTIFY_CHANGE_FILE_NAME | FILE_NOTIFY_CHANGE_SIZE;
// Create the monitor and add directory to watch.
CReadDirectoryChanges changes;