From 63ef5f1660ef50748b08f5aee59a406ffd05d961 Mon Sep 17 00:00:00 2001 From: davidpanderson Date: Mon, 28 Oct 2024 13:24:52 -0700 Subject: [PATCH] Win compile fixes --- client/hostinfo_wsl.cpp | 4 ++-- lib/hostinfo.h | 6 +----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/client/hostinfo_wsl.cpp b/client/hostinfo_wsl.cpp index a64f5481d14..cb852c4ab79 100644 --- a/client/hostinfo_wsl.cpp +++ b/client/hostinfo_wsl.cpp @@ -319,8 +319,8 @@ int get_wsl_information(WSL_DISTROS &distros) { // see if distro is disallowed // vector &dw = cc_config.disallowed_wsls; - if (std::find(dw.begin(), dw.end(), wd.distro_name,) != dw.end()) { - dw.disallowed = true; + if (std::find(dw.begin(), dw.end(), wd.distro_name) != dw.end()) { + wd.disallowed = true; } distros.distros.push_back(wd); } diff --git a/lib/hostinfo.h b/lib/hostinfo.h index bf58cb9fbba..c365379c090 100644 --- a/lib/hostinfo.h +++ b/lib/hostinfo.h @@ -173,11 +173,7 @@ class HOST_INFO { extern void make_secure_random_string(char*); #ifdef _WIN64 -extern int get_wsl_information( - std::vector &allowed_wsls, - WSL_DISTROS &usable_distros, - bool detect_docker -); +extern int get_wsl_information(WSL_DISTROS &distros); extern int get_processor_group(HANDLE); #endif