diff --git a/client/hostinfo_wsl.cpp b/client/hostinfo_wsl.cpp index a64f5481d1..cb852c4ab7 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 bf58cb9fbb..c365379c09 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