Andrew Talbot : winedump: Cast-qual warnings fix ( with thanks to Dmitry Timoshkov and Eric Pouech).

Alexandre Julliard julliard at wine.codeweavers.com
Thu Oct 12 05:46:38 CDT 2006


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

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Wed Oct 11 22:20:10 2006 +0100

winedump: Cast-qual warnings fix (with thanks to Dmitry Timoshkov and Eric Pouech).

---

 include/winnt.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/winnt.h b/include/winnt.h
index c067c5c..79740d9 100644
--- a/include/winnt.h
+++ b/include/winnt.h
@@ -2336,8 +2336,8 @@ typedef struct _IMAGE_SECTION_HEADER {
 #define	IMAGE_SIZEOF_SECTION_HEADER 40
 
 #define IMAGE_FIRST_SECTION(ntheader) \
-  ((PIMAGE_SECTION_HEADER)((LPBYTE)&((PIMAGE_NT_HEADERS)(ntheader))->OptionalHeader + \
-                           ((PIMAGE_NT_HEADERS)(ntheader))->FileHeader.SizeOfOptionalHeader))
+  ((PIMAGE_SECTION_HEADER)(ULONG_PTR)((const BYTE *)&((const IMAGE_NT_HEADERS *)(ntheader))->OptionalHeader + \
+                           ((const IMAGE_NT_HEADERS *)(ntheader))->FileHeader.SizeOfOptionalHeader))
 
 /* These defines are for the Characteristics bitfield. */
 /* #define IMAGE_SCN_TYPE_REG			0x00000000 - Reserved */




More information about the wine-cvs mailing list