Andrew Talbot : kernel32: Cast-qual warnings fix.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Nov 1 07:08:58 CST 2006


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

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Tue Oct 31 22:09:36 2006 +0000

kernel32: Cast-qual warnings fix.

---

 dlls/kernel32/ne_segment.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/kernel32/ne_segment.c b/dlls/kernel32/ne_segment.c
index 2ada891..b4f6e7c 100644
--- a/dlls/kernel32/ne_segment.c
+++ b/dlls/kernel32/ne_segment.c
@@ -421,8 +421,8 @@ BOOL NE_LoadSegment( NE_MODULE *pModule,
         if (buff == NULL) return FALSE;
 
         while(curr < buff + size) {
-            unsigned int rept = ((short*)curr)[0];
-            unsigned int len =  ((short*)curr)[1];
+            unsigned int rept = ((const short *)curr)[0];
+            unsigned int len =  ((const short *)curr)[1];
 
             curr += 2*sizeof(short);
             while (rept--)




More information about the wine-cvs mailing list