From ce3d9f44ff46a4294d9eee472f7c5a38635c271d Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 30 Mar 2015 09:55:02 +0800 Subject: [PATCH] win: Fix compilation error MSDN said, "These are pre-Win32 error codes and are no longer supported or defined in any public header file." --- atom/common/platform_util_win.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/atom/common/platform_util_win.cc b/atom/common/platform_util_win.cc index 1abce87e..78fb0ca0 100644 --- a/atom/common/platform_util_win.cc +++ b/atom/common/platform_util_win.cc @@ -189,7 +189,8 @@ bool MoveItemToTrash(const base::FilePath& path) { // 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. Windows 7 // can return DE_INVALIDFILES (0x7C) for nonexistent directories. - return (err == 0 || err == ERROR_FILE_NOT_FOUND || err == DE_INVALIDFILES); + return (err == 0 || err == ERROR_FILE_NOT_FOUND || err == 0x402 || + err == 0x7C); } void Beep() { -- 2.43.0