From 2467c06a30e96f1b6f400b99af190a2a2033f5bf Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 1 Apr 2013 14:32:36 +0200 Subject: [PATCH] winebuild: Check for delayed import before the library is parsed, in case the real module name is different. --- tools/winebuild/import.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/winebuild/import.c b/tools/winebuild/import.c index 3756c7519a9..f533989d6db 100644 --- a/tools/winebuild/import.c +++ b/tools/winebuild/import.c @@ -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++;