Index: runtime/bin/directory_win.cc |
diff --git a/runtime/bin/directory_win.cc b/runtime/bin/directory_win.cc |
index 7ee9b593cd22a2fadd8af116b85a769821503a0c..c8058540b0ab993189406a1011725ed015872e79 100644 |
--- a/runtime/bin/directory_win.cc |
+++ b/runtime/bin/directory_win.cc |
@@ -430,7 +430,7 @@ bool Directory::Delete(const char* dir_name, bool recursive) { |
if (File::GetType(dir_name, true) == File::kIsDirectory) { |
result = (RemoveDirectoryW(system_dir_name) != 0); |
} else { |
- SetLastError(ERROR_DIRECTORY); |
+ SetLastError(ERROR_FILE_NOT_FOUND); |
} |
} else { |
PathBuffer path; |