updated build system
Some checks reported errors
BlockStorage/repertory/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
2024-08-31 07:54:34 -05:00
parent 8f66fa54ed
commit de55337e1c

View File

@ -213,7 +213,8 @@ auto get_total_drive_space(std::string_view path)
try { try {
#if defined(_WIN32) #if defined(_WIN32)
ULARGE_INTEGER li{}; ULARGE_INTEGER li{};
if (not ::GetDiskFreeSpaceEx(path.c_str(), nullptr, &li, nullptr)) { if (not ::GetDiskFreeSpaceEx(std::string{path}.c_str(), nullptr, &li,
nullptr)) {
throw std::runtime_error("failed to get total disk space|" + throw std::runtime_error("failed to get total disk space|" +
std::string{path} + '|' + std::string{path} + '|' +
std::to_string(utils::get_last_error_code())); std::to_string(utils::get_last_error_code()));