winedump: Fix MZ Header detection (try 2)
André Hentschel
nerv at dawncrow.de
Tue Jan 11 13:29:43 CST 2011
---
tools/winedump/pe.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/winedump/pe.c b/tools/winedump/pe.c
index 63001ed..c1f6eb8 100644
--- a/tools/winedump/pe.c
+++ b/tools/winedump/pe.c
@@ -1461,10 +1461,10 @@ enum FileSig get_kind_exec(void)
if (*pdw == IMAGE_NT_SIGNATURE) return SIG_PE;
if (*(const WORD *)pdw == IMAGE_OS2_SIGNATURE) return SIG_NE;
if (*(const WORD *)pdw == IMAGE_VXD_SIGNATURE) return SIG_LE;
- return SIG_DOS;
}
+ return SIG_DOS;
}
- return 0;
+ return SIG_UNKNOWN;
}
void pe_dump(void)
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list