kernel32: Cast-qual warnings fix.
This commit is contained in:
parent
2b164a2d41
commit
ea117516a7
|
@ -125,36 +125,36 @@ static void store_reg( CONTEXT86 *context, BYTE regmodrm, const BYTE *addr, int
|
||||||
switch((regmodrm >> 3) & 7)
|
switch((regmodrm >> 3) & 7)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
if (long_op) context->Eax = *(DWORD *)addr;
|
if (long_op) context->Eax = *(const DWORD *)addr;
|
||||||
else SET_LOWORD(context->Eax,*(WORD *)addr);
|
else SET_LOWORD(context->Eax, *(const WORD *)addr);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
if (long_op) context->Ecx = *(DWORD *)addr;
|
if (long_op) context->Ecx = *(const DWORD *)addr;
|
||||||
else SET_LOWORD(context->Ecx,*(WORD *)addr);
|
else SET_LOWORD(context->Ecx, *(const WORD *)addr);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
if (long_op) context->Edx = *(DWORD *)addr;
|
if (long_op) context->Edx = *(const DWORD *)addr;
|
||||||
else SET_LOWORD(context->Edx,*(WORD *)addr);
|
else SET_LOWORD(context->Edx, *(const WORD *)addr);
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
if (long_op) context->Ebx = *(DWORD *)addr;
|
if (long_op) context->Ebx = *(const DWORD *)addr;
|
||||||
else SET_LOWORD(context->Ebx,*(WORD *)addr);
|
else SET_LOWORD(context->Ebx, *(const WORD *)addr);
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
if (long_op) context->Esp = *(DWORD *)addr;
|
if (long_op) context->Esp = *(const DWORD *)addr;
|
||||||
else SET_LOWORD(context->Esp,*(WORD *)addr);
|
else SET_LOWORD(context->Esp, *(const WORD *)addr);
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
if (long_op) context->Ebp = *(DWORD *)addr;
|
if (long_op) context->Ebp = *(const DWORD *)addr;
|
||||||
else SET_LOWORD(context->Ebp,*(WORD *)addr);
|
else SET_LOWORD(context->Ebp, *(const WORD *)addr);
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
if (long_op) context->Esi = *(DWORD *)addr;
|
if (long_op) context->Esi = *(const DWORD *)addr;
|
||||||
else SET_LOWORD(context->Esi,*(WORD *)addr);
|
else SET_LOWORD(context->Esi, *(const WORD *)addr);
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 7:
|
||||||
if (long_op) context->Edi = *(DWORD *)addr;
|
if (long_op) context->Edi = *(const DWORD *)addr;
|
||||||
else SET_LOWORD(context->Edi,*(WORD *)addr);
|
else SET_LOWORD(context->Edi, *(const WORD *)addr);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue