[PATCH 0/4] MR233: win32u: Partially move raw input APIs.

Rémi Bernon (@rbernon) wine at gitlab.winehq.org
Mon Jun 13 03:43:40 CDT 2022


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.

-- 
https://gitlab.winehq.org/wine/wine/-/merge_requests/233#note_1940



More information about the wine-devel mailing list