Chromium Code Reviews| Index: base/file_util_win.cc |
| diff --git a/base/file_util_win.cc b/base/file_util_win.cc |
| index adf6608f4e3f16e32238fb46c6b2ae2cbaa5fc04..3101856ec7585ef4f61631a67d4021614a37e8b9 100644 |
| --- a/base/file_util_win.cc |
| +++ b/base/file_util_win.cc |
| @@ -94,8 +94,10 @@ bool DeleteFile(const FilePath& path, bool recursive) { |
| // Some versions of Windows return ERROR_FILE_NOT_FOUND (0x2) when deleting |
| // an empty directory and some return 0x402 when they should be returning |
| - // ERROR_FILE_NOT_FOUND. MSDN says Vista and up won't return 0x402. |
| - return (err == 0 || err == ERROR_FILE_NOT_FOUND || err == 0x402); |
| + // ERROR_FILE_NOT_FOUND. MSDN says Vista and up won't return 0x402. Windows 7 |
| + // can return DE_INVALIDFILES (0x7C) for nonexistent directories. |
| + return (err == 0 || err == ERROR_FILE_NOT_FOUND || err == 0x402 || |
| + err == 0x7C); |
|
rvargas (doing something else)
2014/05/21 18:01:14
tiny nit: indent under "err"
ericu
2014/05/21 18:11:50
Done.
|
| } |
| bool DeleteFileAfterReboot(const FilePath& path) { |