From 13b0452c45f096649a4113bcc378b6111e1bc435 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Hentschel?= <nerv@dawncrow.de>
Date: Tue, 11 Jan 2011 20:29:43 +0100
Subject: [PATCH] winedump: Fix MZ Header detection.

---
 tools/winedump/pe.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/winedump/pe.c b/tools/winedump/pe.c
index 63001ed68ff..c1f6eb8ff88 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)
-- 
GitLab