mirror of
https://github.com/dart-lang/sdk
synced 2024-11-05 18:22:09 +00:00
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:
parent
d9acfd62ee
commit
9a3e62e09a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue