Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/windows/wslaclient/DllMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ try
// Check if the WSL package is installed, and if the version supports WSLA
auto version = wsl::windows::common::wslutil::GetInstalledPackageVersion();

constexpr auto minimalPackageVersion = std::tuple{2, 7, 0};
constexpr auto minimalPackageVersion = std::tuple<uint32_t, uint32_t, uint32_t>{2, 7, 0};
WI_SetFlagIf(*Components, WslInstallComponentWslPackage, !version.has_value() || version < minimalPackageVersion);

// TODO: Check if hardware supports virtualization.
Expand Down
4 changes: 2 additions & 2 deletions src/windows/wslaservice/exe/WSLAVirtualMachine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -879,9 +879,9 @@ Microsoft::WRL::ComPtr<WSLAProcess> WSLAVirtualMachine::CreateLinuxProcess(_In_
}

std::map<int, wil::unique_handle> stdHandles;
for (auto& [fd, socket] : sockets)
for (auto& [fd, handle] : sockets)
{
stdHandles.emplace(fd, reinterpret_cast<HANDLE>(socket.release()));
stdHandles.emplace(fd, reinterpret_cast<HANDLE>(handle.release()));
}

auto process = wil::MakeOrThrow<WSLAProcess>(std::move(stdHandles), pid, this);
Expand Down