From: Cheng Zhao Date: Sat, 30 Jan 2016 03:47:22 +0000 (+0800) Subject: win: Don't close the handle since we already closed the fd X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=899294a0408b950495906e8297084617bd412319;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git win: Don't close the handle since we already closed the fd Fix #4266. --- 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 }