Rémi Bernon (@rbernon) commented about dlls/win32u/rawinput.c:
if (!count)
*data_size = 0;
else
next_size = rawinput_size;
- }
- if (next_size && *data_size <= next_size)
- {
SetLastError( ERROR_INSUFFICIENT_BUFFER );
*data_size = next_size;
count = ~0u;
- }
- if (count)
TRACE( "data %p, data_size %p (%u), header_size %u, count %u\n",
data, data_size, *data_size, header_size, count );
Same here, it triggers me somehow. Maybe we could just remove the if.