From 899294a0408b950495906e8297084617bd412319 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sat, 30 Jan 2016 11:47:22 +0800 Subject: [PATCH] win: Don't close the handle since we already closed the fd Fix #4266. --- atom/common/asar/archive.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/atom/common/asar/archive.cc b/atom/common/asar/archive.cc index 7527932..37ff0f4 100644 --- a/atom/common/asar/archive.cc +++ b/atom/common/asar/archive.cc @@ -130,8 +130,11 @@ Archive::Archive(const base::FilePath& path) Archive::~Archive() { #if defined(OS_WIN) - if (fd_ != -1) + if (fd_ != -1) { _close(fd_); + // Don't close the handle since we already closed the fd. + file_.TakePlatformFile(); + } #endif } -- 2.7.4