mscoree: Avoid calling mono_image_open_from_module_handle for libraries.

This commit is contained in:
Vincent Povirk 2012-08-20 11:15:33 -05:00 committed by Alexandre Julliard
parent 95d00e8ecc
commit d5cec3b08e
1 changed files with 1 additions and 5 deletions

View File

@ -911,13 +911,9 @@ static void CDECL ReallyFixupVTable(struct dll_fixup *fixup)
{
host->mono->mono_thread_attach(domain);
image = host->mono->mono_image_open_from_module_handle(fixup->dll,
filenameA, 1, &status);
assembly = host->mono->mono_assembly_open(filenameA, &status);
}
if (image)
assembly = host->mono->mono_assembly_load_from(image, filenameA, &status);
if (assembly)
{
int i;