Skip to content

Commit a00f03d

Browse files
committed
Fix minor build issues with VS 2026
1 parent 0a3fac7 commit a00f03d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/windows/wslaclient/DllMain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ try
5656
// Check if the WSL package is installed, and if the version supports WSLA
5757
auto version = wsl::windows::common::wslutil::GetInstalledPackageVersion();
5858

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

6262
// TODO: Check if hardware supports virtualization.

src/windows/wslaservice/exe/WSLAVirtualMachine.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -887,9 +887,9 @@ Microsoft::WRL::ComPtr<WSLAProcess> WSLAVirtualMachine::CreateLinuxProcess(_In_
887887
}
888888

889889
std::map<int, wil::unique_handle> stdHandles;
890-
for (auto& [fd, socket] : sockets)
890+
for (auto& [fd, handle] : sockets)
891891
{
892-
stdHandles.emplace(fd, reinterpret_cast<HANDLE>(socket.release()));
892+
stdHandles.emplace(fd, reinterpret_cast<HANDLE>(handle.release()));
893893
}
894894

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

0 commit comments

Comments
 (0)