kernel32: Cast-qual warnings fix (2 of 4)
Andrew Talbot
Andrew.Talbot at talbotville.com
Thu Sep 14 11:40:01 CDT 2006
Changelog:
kernel32: Cast-qual warnings fix.
diff -urN a/dlls/kernel32/instr.c b/dlls/kernel32/instr.c
--- a/dlls/kernel32/instr.c 2006-09-12 13:31:34.000000000 +0100
+++ b/dlls/kernel32/instr.c 2006-09-14 15:29:34.000000000 +0100
@@ -125,36 +125,36 @@
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-patches
mailing list