user32: Use SetRectEmpty() instead of memset().

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2017-04-17 21:42:02 +02:00 committed by Alexandre Julliard
parent 0e0cc67c5a
commit 79147c8658

View file

@ -417,7 +417,7 @@ static LRESULT LISTBOX_GetItemRect( const LB_DESCR *descr, INT index, RECT *rect
/* Index <= 0 is legal even on empty listboxes */
if (index && (index >= descr->nb_items))
{
memset(rect, 0, sizeof(*rect));
SetRectEmpty(rect);
SetLastError(ERROR_INVALID_INDEX);
return LB_ERR;
}