Commit 6c9a0809 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

Listed recently added sections' types (resource, tls) for dumping to

usage strings. Fixed some header size testing.
parent 4446b15c
...@@ -203,7 +203,7 @@ static const struct option option_table[] = { ...@@ -203,7 +203,7 @@ static const struct option option_table[] = {
{"dump", DUMP, 0, do_dump, "dump <mod> Dumps the content of the module (dll, exe...) named <mod>"}, {"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"}, {"-C", DUMP, 0, do_symdmngl, "-C Turns on symbol demangling"},
{"-f", DUMP, 0, do_dumphead, "-f Dumps file header information"}, {"-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"}, {"-x", DUMP, 0, do_dumpall, "-x Dumps everything"},
{NULL, NONE, 0, NULL, NULL} {NULL, NONE, 0, NULL, NULL}
}; };
......
...@@ -899,7 +899,7 @@ static enum FileSig check_headers(void) ...@@ -899,7 +899,7 @@ static enum FileSig check_headers(void)
{ {
if (*pdw == IMAGE_NT_SIGNATURE) if (*pdw == IMAGE_NT_SIGNATURE)
{ {
PE_nt_headers = PRD(dh->e_lfanew, sizeof(DWORD)); PE_nt_headers = PRD(dh->e_lfanew, sizeof(DWORD)+sizeof(IMAGE_FILE_HEADER));
sig = SIG_PE; sig = SIG_PE;
} }
else if (*(WORD *)pdw == IMAGE_OS2_SIGNATURE) else if (*(WORD *)pdw == IMAGE_OS2_SIGNATURE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment