Report same error-code on windows for all not-found cases.

BUG=

Review URL: https://codereview.chromium.org//13638028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21047 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
ajohnsen@google.com 2013-04-08 07:58:46 +00:00
parent d9acfd62ee
commit 9a3e62e09a

View file

@ -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;