Rémi Bernon (@rbernon) commented about dlls/win32u/rawinput.c:
if (!rawinput_from_hardware_message( data, msg_data )) break;
if (overhead)
memmove( (char *)&data->data + overhead, &data->data,
data->header.dwSize - sizeof(RAWINPUTHEADER) );
data->header.dwSize += overhead;
remaining -= data->header.dwSize;
data = NEXTRAWINPUTBLOCK(data);
msg_data = (struct hardware_msg_data *)((char *)msg_data + msg_data->size);
- }
- if (!next_size)
- {
if (!count)
*data_size = 0;
else
next_size = rawinput_size;
NP: The new nested if is fine but single line ifs inside could be nicer imho.