Skip to content

Commit f4e6e50

Browse files
committed
fix build windows
Signed-off-by: James <namnh0122@gmail.com>
1 parent 53e2d51 commit f4e6e50

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

engine/services/file_watcher_service.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class FileWatcherService {
122122
#elif defined(_WIN32)
123123
void WatcherThread() {
124124
dir_handle =
125-
CreateFileA(watchPath.c_str(), FILE_LIST_DIRECTORY,
125+
CreateFileA(watch_path_.c_str(), FILE_LIST_DIRECTORY,
126126
FILE_SHARE_READ | FILE_SHARE_DELETE, NULL, OPEN_EXISTING,
127127
FILE_FLAG_BACKUP_SEMANTICS | FILE_FLAG_OVERLAPPED, NULL);
128128

@@ -135,7 +135,7 @@ class FileWatcherService {
135135
overlapped.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
136136
DWORD bytesReturned;
137137

138-
while (running) {
138+
while (running_) {
139139
if (!ReadDirectoryChangesW(
140140
dir_handle, buffer, sizeof(buffer), TRUE,
141141
FILE_NOTIFY_CHANGE_FILE_NAME | FILE_NOTIFY_CHANGE_DIR_NAME,

0 commit comments

Comments
 (0)