winedump: Fix MZ Header detection.

This commit is contained in:
André Hentschel 2011-01-11 20:29:43 +01:00 committed by Alexandre Julliard
parent ba3f6be371
commit 13b0452c45
1 changed files with 2 additions and 2 deletions

View File

@ -1461,10 +1461,10 @@ enum FileSig get_kind_exec(void)
if (*pdw == IMAGE_NT_SIGNATURE) return SIG_PE; if (*pdw == IMAGE_NT_SIGNATURE) return SIG_PE;
if (*(const WORD *)pdw == IMAGE_OS2_SIGNATURE) return SIG_NE; if (*(const WORD *)pdw == IMAGE_OS2_SIGNATURE) return SIG_NE;
if (*(const WORD *)pdw == IMAGE_VXD_SIGNATURE) return SIG_LE; 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) void pe_dump(void)