winebuild: Check for delayed import before the library is parsed, in case the real module name is different.
This commit is contained in:
parent
a59210a6e8
commit
2467c06a30
|
@ -226,6 +226,7 @@ static int read_import_lib( struct import *imp )
|
||||||
struct stat stat;
|
struct stat stat;
|
||||||
struct import *prev_imp;
|
struct import *prev_imp;
|
||||||
DLLSPEC *spec = imp->spec;
|
DLLSPEC *spec = imp->spec;
|
||||||
|
int delayed = is_delayed_import( spec->file_name );
|
||||||
|
|
||||||
f = open_input_file( NULL, imp->full_name );
|
f = open_input_file( NULL, imp->full_name );
|
||||||
fstat( fileno(f), &stat );
|
fstat( fileno(f), &stat );
|
||||||
|
@ -244,7 +245,7 @@ static int read_import_lib( struct import *imp )
|
||||||
return 0; /* the same file was already loaded, ignore this one */
|
return 0; /* the same file was already loaded, ignore this one */
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_delayed_import( spec->file_name ))
|
if (delayed)
|
||||||
{
|
{
|
||||||
imp->delay = 1;
|
imp->delay = 1;
|
||||||
nb_delayed++;
|
nb_delayed++;
|
||||||
|
|
Loading…
Reference in New Issue