Skip to content

Commit

Permalink
win: Don't close the handle since we already closed the fd
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz authored and brock8503 committed Feb 25, 2016
1 parent 72d22cd commit d42930a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion atom/common/asar/archive.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit d42930a

Please sign in to comment.