Module: wine Branch: master Commit: 79147c8658a05cdcc0a1086937f42109a8d0c2ec URL: http://source.winehq.org/git/wine.git/?a=commit;h=79147c8658a05cdcc0a1086937...
Author: Michael Stefaniuc mstefani@winehq.org Date: Mon Apr 17 21:42:02 2017 +0200
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
---
dlls/user32/listbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/user32/listbox.c b/dlls/user32/listbox.c index 230f8da..6b47f05 100644 --- a/dlls/user32/listbox.c +++ b/dlls/user32/listbox.c @@ -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; }