| Index: base/file_util_win.cc
|
| diff --git a/base/file_util_win.cc b/base/file_util_win.cc
|
| index eb9c6dc23dcf3f3eff8177d6c5083f7a9318385d..adf6608f4e3f16e32238fb46c6b2ae2cbaa5fc04 100644
|
| --- a/base/file_util_win.cc
|
| +++ b/base/file_util_win.cc
|
| @@ -51,6 +51,11 @@ bool DeleteFile(const FilePath& path, bool recursive) {
|
| if (path.value().length() >= MAX_PATH)
|
| return false;
|
|
|
| + // On XP SHFileOperation will return ERROR_ACCESS_DENIED instead of
|
| + // ERROR_FILE_NOT_FOUND, so just shortcut this here.
|
| + if (path.empty())
|
| + return true;
|
| +
|
| if (!recursive) {
|
| // If not recursing, then first check to see if |path| is a directory.
|
| // If it is, then remove it with RemoveDirectory.
|
|
|