Dmitry Timoshkov : winedump: Restore the COFF library dumper functionality broken by the previous change .

Alexandre Julliard julliard at wine.codeweavers.com
Thu Nov 30 13:41:08 CST 2006


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

Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date:   Fri Dec  1 00:11:01 2006 +0800

winedump: Restore the COFF library dumper functionality broken by the previous change.

---

 tools/winedump/dump.c |    2 ++
 tools/winedump/lib.c  |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/tools/winedump/dump.c b/tools/winedump/dump.c
index 90ab149..6cd9c9e 100644
--- a/tools/winedump/dump.c
+++ b/tools/winedump/dump.c
@@ -187,6 +187,8 @@ int dump_analysis(const char *name, file
         if ((unsigned long)read( fd, dump_base, dump_total_len ) != dump_total_len) fatal( "Cannot read file" );
     }
 
+    printf("Contents of %s: %ld bytes\n\n", name, dump_total_len);
+
     for (dpr = dumpers; dpr->kind != SIG_UNKNOWN; dpr++)
     {
         if (dpr->get_kind() == dpr->kind &&
diff --git a/tools/winedump/lib.c b/tools/winedump/lib.c
index bd03eb7..858c37b 100644
--- a/tools/winedump/lib.c
+++ b/tools/winedump/lib.c
@@ -125,7 +125,7 @@ void lib_dump(void)
         /* FIXME: only import library contents with the short format are
          * recognized.
          */
-        if (!(ioh = PRD(cur_file_pos + sizeof(*iamh), sizeof(*ioh)))) break;
+        if (!(ioh = PRD(cur_file_pos, sizeof(*ioh)))) break;
         if (ioh->Sig1 == IMAGE_FILE_MACHINE_UNKNOWN && ioh->Sig2 == IMPORT_OBJECT_HDR_SIG2)
         {
             dump_import_object(ioh);




More information about the wine-cvs mailing list