win: Don't close the handle since we already closed the fd

Fix #4266.
This commit is contained in:
Cheng Zhao 2016-01-30 11:47:22 +08:00
parent d89bda5c68
commit 899294a040

View file

@ -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
}