From a02a0730fd9b66cfed234f526f7a94c348629865 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 23 Dec 2025 22:29:18 +0000 Subject: [PATCH 1/3] Initial plan From c345598cecf30b716933b78a742fd35beafe9522 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 23 Dec 2025 22:32:06 +0000 Subject: [PATCH 2/3] Fix code review issues: assign g_schemaVersion and correct ExecutionContext Co-authored-by: benhillis <17727402+benhillis@users.noreply.github.com> --- src/windows/common/hcs.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/windows/common/hcs.cpp b/src/windows/common/hcs.cpp index 93dac7659..4c52c544a 100644 --- a/src/windows/common/hcs.cpp +++ b/src/windows/common/hcs.cpp @@ -182,6 +182,8 @@ std::pair wsl::windows::common::hcs::GetSchemaVersion() } } } + + g_schemaVersion = {majorVersion, minorVersion}; }); return g_schemaVersion; @@ -249,7 +251,7 @@ void wsl::windows::common::hcs::RevokeVmAccess(_In_ PCWSTR VmId, _In_ PCWSTR Fil { WSL_LOG_DEBUG("HcsRevokeVmAccess", TraceLoggingValue(VmId, "vmId"), TraceLoggingValue(FilePath, "filePath")); - ExecutionContext context(Context::HNS); + ExecutionContext context(Context::HCS); THROW_IF_FAILED_MSG(::HcsRevokeVmAccess(VmId, FilePath), "HcsRevokeVmAccess(%ls, %ls)", VmId, FilePath); } From 8680dcfe9ca314442f614e25d30abcd55a37f018 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 23 Dec 2025 22:33:10 +0000 Subject: [PATCH 3/3] Complete code review fixes Co-authored-by: benhillis <17727402+benhillis@users.noreply.github.com> --- _codeql_detected_source_root | 1 + 1 file changed, 1 insertion(+) create mode 120000 _codeql_detected_source_root diff --git a/_codeql_detected_source_root b/_codeql_detected_source_root new file mode 120000 index 000000000..945c9b46d --- /dev/null +++ b/_codeql_detected_source_root @@ -0,0 +1 @@ +. \ No newline at end of file