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:
parent
0e0cc67c5a
commit
79147c8658
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue