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

Alexandre Julliard julliard at winehq.org
Mon Apr 1 13:48:41 CDT 2013


Module: wine
Branch: master
Commit: 2467c06a30e96f1b6f400b99af190a2a2033f5bf
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2467c06a30e96f1b6f400b99af190a2a2033f5bf

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Apr  1 14:32:36 2013 +0200

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

---

 tools/winebuild/import.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/tools/winebuild/import.c b/tools/winebuild/import.c
index 3756c75..f533989 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++;




More information about the wine-cvs mailing list