summaryrefslogtreecommitdiff
path: root/src/vm/dllimport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vm/dllimport.cpp')
-rw-r--r--src/vm/dllimport.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/vm/dllimport.cpp b/src/vm/dllimport.cpp
index 3abe9cbf46..b58ac56b29 100644
--- a/src/vm/dllimport.cpp
+++ b/src/vm/dllimport.cpp
@@ -5938,19 +5938,7 @@ HMODULE NDirect::LoadLibraryModuleViaHost(NDirectMethodDesc * pMD, AppDomain* pD
// The Binding Context can be null or an overridden TPA context
if (pBindingContext == NULL)
{
- pBindingContext = nullptr;
-
- // If the assembly does not have a binder associated with it explicitly, then check if it is
- // a dynamic assembly, or not, since they can have a fallback load context associated with them.
- if (pManifestFile->IsDynamic())
- {
- pBindingContext = pManifestFile->GetFallbackLoadContextBinder();
- }
- }
-
- // If we do not have any binder associated, then return to the default resolution mechanism.
- if (pBindingContext == nullptr)
- {
+ // If we do not have any binder associated, then return to the default resolution mechanism.
return NULL;
}