pedump

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



a few minor improvements for winedump
A+
--
Eric Pouech
Name:          wd_misc
ChangeLog:     listed recently added sections' types (resource, tls) for dumping to usage strings
fixed some header size testing
License:       X11
GenDate:       2003/05/08 19:23:13 UTC
ModifiedFiles: tools/winedump/main.c tools/winedump/pe.c
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/tools/winedump/main.c,v
retrieving revision 1.12
diff -u -u -r1.12 main.c
--- tools/winedump/main.c	7 Oct 2002 18:22:09 -0000	1.12
+++ tools/winedump/main.c	8 May 2003 05:43:53 -0000
@@ -203,7 +203,7 @@
   {"dump",  DUMP, 0, do_dump,     "dump <mod>   Dumps the content of the module (dll, exe...) named <mod>"},
   {"-C",    DUMP, 0, do_symdmngl, "-C           Turns on symbol demangling"},
   {"-f",    DUMP, 0, do_dumphead, "-f           Dumps file header information"},
-  {"-j",    DUMP, 1, do_dumpsect, "-j sect_name Dumps only the content of section sect_name (import, export, debug)"},
+  {"-j",    DUMP, 1, do_dumpsect, "-j sect_name Dumps only the content of section sect_name (import, export, debug, resource, tls)"},
   {"-x",    DUMP, 0, do_dumpall,  "-x           Dumps everything"},
   {NULL,    NONE, 0, NULL,        NULL}
 };
Index: tools/winedump/pe.c
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/tools/winedump/pe.c,v
retrieving revision 1.23
diff -u -u -r1.23 pe.c
--- tools/winedump/pe.c	8 May 2003 04:01:12 -0000	1.23
+++ tools/winedump/pe.c	8 May 2003 19:22:57 -0000
@@ -899,7 +899,7 @@
 	    {
 		if (*pdw == IMAGE_NT_SIGNATURE)
 		{
-		    PE_nt_headers = PRD(dh->e_lfanew, sizeof(DWORD));
+		    PE_nt_headers = PRD(dh->e_lfanew, sizeof(*PE_nt_headers));
 		    sig = SIG_PE;
 		}
                 else if (*(WORD *)pdw == IMAGE_OS2_SIGNATURE)

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux