diff options
| author | Maksim Moisiuk <ConEmu.Maximus5@gmail.com> | 2020-07-13 21:13:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-13 12:13:55 -0700 |
| commit | 713950c89b02394967902c2d9ed901ccf41a3466 (patch) | |
| tree | 13f621d0fde2f44c69d51af3a6ce1a230161c1ad | |
| parent | 18c77502708006e957a9fe6690782a154102df58 (diff) | |
| download | vcpkg-713950c89b02394967902c2d9ed901ccf41a3466.tar.gz vcpkg-713950c89b02394967902c2d9ed901ccf41a3466.zip | |
[vcpkg] proper errorcheck during files installation (#12378)
* [vcpkg] proper errorcheck during files installation
* [vcpkg] move ec.clear to status_implementation
| -rw-r--r-- | toolsrc/src/vcpkg/base/files.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/toolsrc/src/vcpkg/base/files.cpp b/toolsrc/src/vcpkg/base/files.cpp index 52421bd55..4e3531c22 100644 --- a/toolsrc/src/vcpkg/base/files.cpp +++ b/toolsrc/src/vcpkg/base/files.cpp @@ -34,6 +34,7 @@ namespace vcpkg::Files WIN32_FILE_ATTRIBUTE_DATA file_attributes; auto ft = file_type::unknown; auto permissions = perms::unknown; + ec.clear(); if (!GetFileAttributesExW(p.c_str(), GetFileExInfoStandard, &file_attributes)) { const auto err = GetLastError(); |
