[vcpkg] proper errorcheck during files installation (#12378)

* [vcpkg] proper errorcheck during files installation

* [vcpkg] move ec.clear to status_implementation
This commit is contained in:
Maksim Moisiuk 2020-07-13 21:13:55 +02:00 committed by GitHub
parent 18c7750270
commit 713950c89b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();