Only fixup borland imports once

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Mon Mar 11 18:07:28 CST 2002


Changelog:
	loader/pe_image.c: PE_fixup_imports
	Only fixup Borland imports once. Some remarks in winnt.h
	make it resonable to use pe_imp->TimeDateStamp as marker


This make the quicklogic suite crash later, after doing some real work. The
dll causing the problems is netbios.dll from win95 osr2.

Attention: I used diff -uw ,as I have heavily indented my code.
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Free Software: If you contribute nothing, expect nothing
--
Index: wine/loader/pe_image.c
===================================================================
RCS file: /home/wine/wine/loader/pe_image.c,v
retrieving revision 1.106
diff -u -w -r1.106 pe_image.c
--- wine/loader/pe_image.c	2002/03/10 00:18:34	1.106
+++ wine/loader/pe_image.c	2002/03/12 00:01:45
@@ -344,6 +344,8 @@
 	    }
 	} else {	/* Borland style */
 	    TRACE("Borland style imports used\n");
+	    if (pe_imp->TimeDateStamp != -1) 
+	      {
 	    thunk_list = (PIMAGE_THUNK_DATA) RVA(pe_imp->FirstThunk);
 	    while (thunk_list->u1.Ordinal) {
 		if (IMAGE_SNAP_BY_ORDINAL(thunk_list->u1.Ordinal)) {
@@ -374,6 +376,8 @@
 		}
 		thunk_list++;
 	    }
+		pe_imp->TimeDateStamp = -1;
+	      }
 	}
     }
     return 0;



More information about the wine-devel mailing list