server: Fix the parameter size check for IOCTL_AFD_EVENT_SELECT.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2021-08-09 16:35:35 -05:00 committed by Alexandre Julliard
parent a716b13974
commit acc1861ed0
1 changed files with 2 additions and 2 deletions

View File

@ -2420,7 +2420,7 @@ static int sock_ioctl( struct fd *fd, ioctl_code_t code, struct async *async )
{
const struct afd_event_select_params_64 *params = get_req_data();
if (get_req_data_size() < sizeof(params))
if (get_req_data_size() < sizeof(*params))
{
set_error( STATUS_INVALID_PARAMETER );
return 1;
@ -2433,7 +2433,7 @@ static int sock_ioctl( struct fd *fd, ioctl_code_t code, struct async *async )
{
const struct afd_event_select_params_32 *params = get_req_data();
if (get_req_data_size() < sizeof(params))
if (get_req_data_size() < sizeof(*params))
{
set_error( STATUS_INVALID_PARAMETER );
return 1;