user32: Use SetRectEmpty() instead of memset()
Michael Stefaniuc
mstefani at winehq.org
Mon Apr 17 14:42:02 CDT 2017
Signed-off-by: Michael Stefaniuc <mstefani at 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;
}
--
2.9.3
More information about the wine-patches
mailing list