projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05aecee
)
win: Call _close before close file handle
author
Cheng Zhao
<zcbenz@gmail.com>
Thu, 28 Jan 2016 14:38:53 +0000
(22:38 +0800)
committer
Cheng Zhao
<zcbenz@gmail.com>
Thu, 28 Jan 2016 14:38:53 +0000
(22:38 +0800)
Fix #4258.
atom/common/asar/archive.cc
patch
|
blob
|
history
diff --git
a/atom/common/asar/archive.cc
b/atom/common/asar/archive.cc
index
d6abf1c
..
7527932
100644
(file)
--- a/
atom/common/asar/archive.cc
+++ b/
atom/common/asar/archive.cc
@@
-130,14
+130,16
@@
Archive::Archive(const base::FilePath& path)
Archive::~Archive() {
#if defined(OS_WIN)
- file_.Close();
- _close(fd_);
+ if (fd_ != -1)
+
_close(fd_);
#endif
}
bool Archive::Init() {
- if (!file_.IsValid())
+ if (!file_.IsValid()) {
+ LOG(ERROR) << base::File::ErrorToString(file_.error_details());
return false;
+ }
std::vector<char> buf;
int len;