summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSteve MacLean <stmaclea@microsoft.com>2018-12-17 21:23:20 -0500
committerGitHub <noreply@github.com>2018-12-17 21:23:20 -0500
commitf6d403292c17f7024509c59593bcab05ee9379f1 (patch)
tree129112b53d8c6f41349fccb755352c54662871b9 /tests
parent5fc2313f1bc4ffac033f38b2162175c958cfdf3f (diff)
downloadcoreclr-f6d403292c17f7024509c59593bcab05ee9379f1.tar.gz
coreclr-f6d403292c17f7024509c59593bcab05ee9379f1.tar.bz2
coreclr-f6d403292c17f7024509c59593bcab05ee9379f1.zip
Do not use CorHost2::m_fStarted to gate execution (#20953)
* ExecuteInDefaultAppDomain w/o Start Do not require Start() call before calling ExecuteInDefaultAppDomain() * Remove unused variable * Move flags as needed to CorHost2
Diffstat (limited to 'tests')
-rw-r--r--tests/src/Interop/ExecInDefAppDom/ExecInDefAppDomDll.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/src/Interop/ExecInDefAppDom/ExecInDefAppDomDll.cpp b/tests/src/Interop/ExecInDefAppDom/ExecInDefAppDomDll.cpp
index 597c248712..676087b7e4 100644
--- a/tests/src/Interop/ExecInDefAppDom/ExecInDefAppDomDll.cpp
+++ b/tests/src/Interop/ExecInDefAppDom/ExecInDefAppDomDll.cpp
@@ -53,12 +53,9 @@ CallExecuteInDefaultAppDomain(LPCWSTR pwzAssemblyPath,
if (!host)
return E_FAIL;
- if(host->Start())
- return E_FAIL;
-
auto result = host->ExecuteInDefaultAppDomain(pwzAssemblyPath, pwzTypeName, pwzMethodName, pwzArgument, pReturnValue);
- host->Stop();
+ host->Release();
return result;
}