diff --git a/src/common/utils/container.hpp b/src/common/utils/container.hpp index 0877728c..9c1ae8aa 100644 --- a/src/common/utils/container.hpp +++ b/src/common/utils/container.hpp @@ -40,8 +40,8 @@ namespace utils bool operator()(const std::string_view lhs, const std::string_view rhs) const { - return std::equal(lhs.begin(), lhs.end(), rhs.begin(), rhs.end(), - [](unsigned char c1, unsigned char c2) { return std::tolower(c1) == std::tolower(c2); }); + return std::ranges::equal( + lhs, rhs, [](unsigned char c1, unsigned char c2) { return std::tolower(c1) == std::tolower(c2); }); } }; diff --git a/src/windows-emulator/syscalls/registry.cpp b/src/windows-emulator/syscalls/registry.cpp index be62249f..f27190b6 100644 --- a/src/windows-emulator/syscalls/registry.cpp +++ b/src/windows-emulator/syscalls/registry.cpp @@ -400,7 +400,7 @@ namespace syscalls constexpr auto base_size = offsetof(KEY_VALUE_FULL_INFORMATION, Name); const auto name_size = value_name_u16.size() * 2; const auto data_size = value->data.size(); - const ULONG data_offset = static_cast(base_size + name_size); + const auto data_offset = static_cast(base_size + name_size); const auto required_size = data_offset + data_size; result_length.write(static_cast(required_size));