winedump: Restore the COFF library dumper functionality broken by the previous change.
This commit is contained in:
parent
6a530aba76
commit
671a2261c0
|
@ -187,6 +187,8 @@ int dump_analysis(const char *name, file_dumper fn, enum FileSig wanted_sig)
|
||||||
if ((unsigned long)read( fd, dump_base, dump_total_len ) != dump_total_len) fatal( "Cannot read 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++)
|
for (dpr = dumpers; dpr->kind != SIG_UNKNOWN; dpr++)
|
||||||
{
|
{
|
||||||
if (dpr->get_kind() == dpr->kind &&
|
if (dpr->get_kind() == dpr->kind &&
|
||||||
|
|
|
@ -125,7 +125,7 @@ void lib_dump(void)
|
||||||
/* FIXME: only import library contents with the short format are
|
/* FIXME: only import library contents with the short format are
|
||||||
* recognized.
|
* 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)
|
if (ioh->Sig1 == IMAGE_FILE_MACHINE_UNKNOWN && ioh->Sig2 == IMPORT_OBJECT_HDR_SIG2)
|
||||||
{
|
{
|
||||||
dump_import_object(ioh);
|
dump_import_object(ioh);
|
||||||
|
|
Loading…
Reference in New Issue