From 8c32184814aecf4a5fbc0759a6d527a4c086d05a Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Wed, 13 Oct 1999 12:22:47 +0000 Subject: [PATCH] Bugfix: *Don't* resolve PE imports if asked not to ... --- loader/pe_image.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/loader/pe_image.c b/loader/pe_image.c index f2cf4332a51..7770dbbb135 100644 --- a/loader/pe_image.c +++ b/loader/pe_image.c @@ -835,9 +835,10 @@ WINE_MODREF *PE_CreateModule( HMODULE hModule, /* Fixup Imports */ - if ( pe_import && fixup_imports( wm ) + if ( pe_import && !( wm->flags & WINE_MODREF_LOAD_AS_DATAFILE ) - && !( wm->flags & WINE_MODREF_DONT_RESOLVE_REFS ) ) + && !( wm->flags & WINE_MODREF_DONT_RESOLVE_REFS ) + && fixup_imports( wm ) ) { /* remove entry from modref chain */ EnterCriticalSection( &PROCESS_Current()->crit_section );