{
if (pCoreCLRFoundAssembly->GetIsInGAC())
{
- // If we were able to bind to a TPA assembly, then fail the load
- IF_FAIL_GO(HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND));
+ *ppAssembly = pCoreCLRFoundAssembly.Extract();
+ goto Exit;
}
}
}
spec.GetFileOrDisplayName(0, name);
COMPlusThrowHR(COR_E_FILELOAD, dwMessageID, name);
}
+
+ BINDER_SPACE::Assembly* assem;
+ assem = BINDER_SPACE::GetAssemblyFromPrivAssemblyFast(pAssembly);
- PEAssemblyHolder pPEAssembly(PEAssembly::Open(pParentAssembly, pILImage, pNIImage, pAssembly, FALSE));
-
+ PEAssemblyHolder pPEAssembly(PEAssembly::Open(pParentAssembly, assem->GetPEImage(), assem->GetNativePEImage(), pAssembly, FALSE));
+
GCX_COOP();
IApplicationSecurityDescriptor *pDomainSecDesc = pCurDomain->GetSecurityDescriptor();