Bugfix for fixup_imports: Enable checking for terminating import
struct with Characteristics bitfield set to 0.

diff --git a/loader/pe_image.c b/loader/pe_image.c
index 5fe9df0..852e395 100644
--- a/loader/pe_image.c
+++ b/loader/pe_image.c
@@ -238,8 +238,7 @@
     if (!pe_imp) 
     	ERR(win32, "no import directory????\n");
 
-    /* FIXME: should terminate on 0 Characteristics */
-    for (i = 0; pe_imp->Name; pe_imp++)
+    for (i = 0; pe_imp->Name && pe_imp->u.Characteristics; pe_imp++) 
 	i++;
 
     /* Allocate module dependency list */
@@ -250,8 +249,7 @@
      * added to the modref list of the process.
      */
  
-    /* FIXME: should terminate on 0 Characteristics */
-    for (i = 0, pe_imp = pem->pe_import; pe_imp->Name; pe_imp++) {
+    for (i = 0, pe_imp = pem->pe_import; pe_imp->Name && pe_imp->u.Characteristics; pe_imp++) {
     	HMODULE32		hImpModule;
 	IMAGE_IMPORT_BY_NAME	*pe_name;
 	PIMAGE_THUNK_DATA	import_list,thunk_list;