Skip to content

Commit

Permalink
win: Fix compilation error
Browse files Browse the repository at this point in the history
MSDN said, "These are pre-Win32 error codes and are no longer supported or
defined in any public header file."
  • Loading branch information
zcbenz committed Mar 30, 2015
1 parent c5c686f commit ce3d9f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion atom/common/platform_util_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit ce3d9f4

Please sign in to comment.