Commit c2bb9108 authored by Alexandre Julliard's avatar Alexandre Julliard

Ignore the size of the import directory, process imports until we find

a null entry.
parent 80c60f5b
...@@ -588,15 +588,9 @@ static NTSTATUS fixup_imports( WINE_MODREF *wm, LPCWSTR load_path ) ...@@ -588,15 +588,9 @@ static NTSTATUS fixup_imports( WINE_MODREF *wm, LPCWSTR load_path )
IMAGE_DIRECTORY_ENTRY_IMPORT, &size ))) IMAGE_DIRECTORY_ENTRY_IMPORT, &size )))
return STATUS_SUCCESS; return STATUS_SUCCESS;
nb_imports = size / sizeof(*imports); nb_imports = 0;
for (i = 0; i < nb_imports; i++) while (imports[nb_imports].Name && imports[nb_imports].FirstThunk) nb_imports++;
{
if (!imports[i].Name)
{
nb_imports = i;
break;
}
}
if (!nb_imports) return STATUS_SUCCESS; /* no imports */ if (!nb_imports) return STATUS_SUCCESS; /* no imports */
/* Allocate module dependency list */ /* Allocate module dependency list */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment