André Hentschel : imagehlp: Use define instead of hardcoded value.

Alexandre Julliard julliard at winehq.org
Tue Jan 11 10:08:24 CST 2011


Module: wine
Branch: master
Commit: 82efaae0a2aed93b6868a32d902953d0382fe77d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=82efaae0a2aed93b6868a32d902953d0382fe77d

Author: André Hentschel <nerv at dawncrow.de>
Date:   Mon Jan 10 19:20:15 2011 +0100

imagehlp: Use define instead of hardcoded value.

---

 dlls/imagehlp/integrity.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/imagehlp/integrity.c b/dlls/imagehlp/integrity.c
index 878153a..2c72948 100644
--- a/dlls/imagehlp/integrity.c
+++ b/dlls/imagehlp/integrity.c
@@ -77,7 +77,7 @@ static int IMAGEHLP_GetNTHeaders(HANDLE handle, DWORD *pe_offset, IMAGE_NT_HEADE
         return HDR_FAIL;
 
     /* verify magic number of 'MZ' */
-    if (dos_hdr.e_magic != 0x5A4D)
+    if (dos_hdr.e_magic != IMAGE_DOS_SIGNATURE)
         return HDR_FAIL;
 
     if (pe_offset != NULL)




More information about the wine-cvs mailing list