summaryrefslogtreecommitdiffstats
path: root/base/directory_watcher_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/directory_watcher_win.cc')
-rw-r--r--base/directory_watcher_win.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/base/directory_watcher_win.cc b/base/directory_watcher_win.cc
index cdaec39..68da1e50 100644
--- a/base/directory_watcher_win.cc
+++ b/base/directory_watcher_win.cc
@@ -42,6 +42,7 @@ DirectoryWatcher::Impl::~Impl() {
bool DirectoryWatcher::Impl::Watch(const FilePath& path) {
DCHECK(path_.value().empty()); // Can only watch one path.
+ DCHECK(path.IsAbsolute()); // FindFirstChangeNotification requires it.
handle_ = FindFirstChangeNotification(
path.value().c_str(),