Add missing check to allow assembly bound using the Resolving event to be used during...
authorGaurav Khanna <gkhanna@microsoft.com>
Fri, 17 Jun 2016 13:29:41 +0000 (06:29 -0700)
committerGaurav Khanna <gkhanna@microsoft.com>
Fri, 17 Jun 2016 13:29:41 +0000 (06:29 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/c335d794bd56f4971bd37bbb220b753ea04ec837

src/coreclr/src/vm/appdomain.cpp

index eac6311..4580c5a 100644 (file)
@@ -14319,6 +14319,11 @@ HRESULT RuntimeInvokeHostAssemblyResolver(INT_PTR pManagedAssemblyLoadContextToB
 
                 // Make the call
                 _gcRefs.oRefLoadedAssembly = (ASSEMBLYREF) methLoadAssembly.Call_RetOBJECTREF(args);
+                if (_gcRefs.oRefLoadedAssembly != NULL)
+                {
+                    // Set the flag indicating we found the assembly
+                    fResolvedAssembly = true;
+                }
             }
             
             if (fResolvedAssembly && !fResolvedAssemblyViaTPALoadContext)