On 3/29/22 12:39, RĂ©mi Bernon wrote:
@@ -869,19 +869,19 @@ static DWORD emulate_instruction( EXCEPTION_RECORD *rec, CONTEXT *context ) switch (*instr) { case 0x8a:
store_reg_byte( context, instr[1], wine_user_shared_data + offset,
store_reg_byte( context, instr[1], (BYTE *)wine_user_shared_data + offset, rex, INSTR_OP_MOV ); break; case 0x8b:
store_reg_word( context, instr[1], wine_user_shared_data + offset,
store_reg_word( context, instr[1], (BYTE *)wine_user_shared_data + offset, long_op, rex, INSTR_OP_MOV ); break;
Couldn't we just modify those functions to take a "const volatile BYTE *" pointer instead?