Andrew Talbot : kernel32: Cast-qual warnings fix.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Sep 20 05:33:45 CDT 2006


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

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Thu Sep 14 17:40:01 2006 +0100

kernel32: Cast-qual warnings fix.

---

 dlls/kernel32/instr.c |   32 ++++++++++++++++----------------
 1 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/dlls/kernel32/instr.c b/dlls/kernel32/instr.c
index e2b65bf..d01bda9 100644
--- a/dlls/kernel32/instr.c
+++ b/dlls/kernel32/instr.c
@@ -125,36 +125,36 @@ static void store_reg( CONTEXT86 *contex
     switch((regmodrm >> 3) & 7)
     {
     case 0:
-        if (long_op) context->Eax = *(DWORD *)addr;
-        else SET_LOWORD(context->Eax,*(WORD *)addr);
+        if (long_op) context->Eax = *(const DWORD *)addr;
+        else SET_LOWORD(context->Eax, *(const WORD *)addr);
         break;
     case 1:
-        if (long_op) context->Ecx = *(DWORD *)addr;
-        else SET_LOWORD(context->Ecx,*(WORD *)addr);
+        if (long_op) context->Ecx = *(const DWORD *)addr;
+        else SET_LOWORD(context->Ecx, *(const WORD *)addr);
         break;
     case 2:
-        if (long_op) context->Edx = *(DWORD *)addr;
-        else SET_LOWORD(context->Edx,*(WORD *)addr);
+        if (long_op) context->Edx = *(const DWORD *)addr;
+        else SET_LOWORD(context->Edx, *(const WORD *)addr);
         break;
     case 3:
-        if (long_op) context->Ebx = *(DWORD *)addr;
-        else SET_LOWORD(context->Ebx,*(WORD *)addr);
+        if (long_op) context->Ebx = *(const DWORD *)addr;
+        else SET_LOWORD(context->Ebx, *(const WORD *)addr);
         break;
     case 4:
-        if (long_op) context->Esp = *(DWORD *)addr;
-        else SET_LOWORD(context->Esp,*(WORD *)addr);
+        if (long_op) context->Esp = *(const DWORD *)addr;
+        else SET_LOWORD(context->Esp, *(const WORD *)addr);
         break;
     case 5:
-        if (long_op) context->Ebp = *(DWORD *)addr;
-        else SET_LOWORD(context->Ebp,*(WORD *)addr);
+        if (long_op) context->Ebp = *(const DWORD *)addr;
+        else SET_LOWORD(context->Ebp, *(const WORD *)addr);
         break;
     case 6:
-        if (long_op) context->Esi = *(DWORD *)addr;
-        else SET_LOWORD(context->Esi,*(WORD *)addr);
+        if (long_op) context->Esi = *(const DWORD *)addr;
+        else SET_LOWORD(context->Esi, *(const WORD *)addr);
         break;
     case 7:
-        if (long_op) context->Edi = *(DWORD *)addr;
-        else SET_LOWORD(context->Edi,*(WORD *)addr);
+        if (long_op) context->Edi = *(const DWORD *)addr;
+        else SET_LOWORD(context->Edi, *(const WORD *)addr);
         break;
     }
 }




More information about the wine-cvs mailing list