From 13f626fb05c5c30a41ca57a2e708ba760693f5e4 Mon Sep 17 00:00:00 2001 From: Omair Majid Date: Sat, 30 Jan 2021 02:09:23 -0500 Subject: [PATCH] Fix copy-paste error in host_context_test.cpp (#47430) The code tries to write the status from `rcClose`, but accidentally writes out the value of `rc` instead. --- .../corehost/cli/test/nativehost/host_context_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/installer/corehost/cli/test/nativehost/host_context_test.cpp b/src/installer/corehost/cli/test/nativehost/host_context_test.cpp index 706e6a9f803..de2cf6ef399 100644 --- a/src/installer/corehost/cli/test/nativehost/host_context_test.cpp +++ b/src/installer/corehost/cli/test/nativehost/host_context_test.cpp @@ -673,7 +673,7 @@ bool host_context_test::mixed( int rcClose = hostfxr.close(handle); if (rcClose != StatusCode::Success) - run_app_output << _X("hostfxr_close failed: ") << std::hex << std::showbase << rc << std::endl; + run_app_output << _X("hostfxr_close failed: ") << std::hex << std::showbase << rcClose << std::endl; }; std::thread app_start = std::thread(run_app); -- GitLab