... | ... |
@@ -87,7 +87,7 @@ DWORD WINAPI monitor_thread(VOID *p) { |
87 | 87 |
watchme[sizeof(watchme)-1] = '\0'; |
88 | 88 |
|
89 | 89 |
harr[0] = monitor_event; |
90 |
- harr[1] = FindFirstChangeNotification(dbdir, FALSE, FILE_NOTIFY_CHANGE_LAST_WRITE); |
|
90 |
+ harr[1] = FindFirstChangeNotification(dbdir, FALSE, FILE_NOTIFY_CHANGE_LAST_WRITE | FILE_NOTIFY_CHANGE_FILE_NAME); |
|
91 | 91 |
|
92 | 92 |
logg("monitor_thread: watching directory changes on %s\n", dbdir); |
93 | 93 |
|