Commit 01ee1418 authored by Alexandre Julliard's avatar Alexandre Julliard

winedump: Avoid some dead code.

parent da6c01be
...@@ -248,16 +248,12 @@ int dump_analysis(const char *name, file_dumper fn, enum FileSig wanted_sig) ...@@ -248,16 +248,12 @@ int dump_analysis(const char *name, file_dumper fn, enum FileSig wanted_sig)
effective_sig = check_headers(); effective_sig = check_headers();
if (effective_sig == SIG_UNKNOWN) if (wanted_sig == SIG_UNKNOWN || wanted_sig == effective_sig)
{
printf("Can't get a recognized file signature, aborting\n");
ret = 0;
}
else if (wanted_sig == SIG_UNKNOWN || wanted_sig == effective_sig)
{ {
switch (effective_sig) switch (effective_sig)
{ {
case SIG_UNKNOWN: /* shouldn't happen... */ case SIG_UNKNOWN: /* shouldn't happen... */
printf("Can't get a recognized file signature, aborting\n");
ret = 0; break; ret = 0; break;
case SIG_PE: case SIG_PE:
case SIG_NE: case SIG_NE:
......
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