winebuild: Check for delayed import before the library is parsed, in case the real module name is different.

oldstable
Alexandre Julliard 2013-04-01 14:32:36 +02:00
parent a59210a6e8
commit 2467c06a30
1 changed files with 2 additions and 1 deletions

View File

@ -226,6 +226,7 @@ static int read_import_lib( struct import *imp )
struct stat stat;
struct import *prev_imp;
DLLSPEC *spec = imp->spec;
int delayed = is_delayed_import( spec->file_name );
f = open_input_file( NULL, imp->full_name );
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 */
}
if (is_delayed_import( spec->file_name ))
if (delayed)
{
imp->delay = 1;
nb_delayed++;