[PATCH] ntoskrnl.exe: Make USD pointers volatile to silent a warning.
Zebediah Figura
zfigura at codeweavers.com
Tue Mar 29 13:27:05 CDT 2022
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?
More information about the wine-devel
mailing list