[PATCH 4/5] user32/listbox: Return proper value for LB_INITSTORAGE

Gabriel Iv─âncescu gabrielopcode at gmail.com
Fri Feb 8 05:17:21 CST 2019


Signed-off-by: Gabriel Iv─âncescu <gabrielopcode at gmail.com>
---
 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 3bd1b58..a2791eb 100644
--- a/dlls/user32/listbox.c
+++ b/dlls/user32/listbox.c
@@ -734,7 +734,7 @@ static LRESULT LISTBOX_InitStorage( LB_DESCR *descr, INT nb_items )
 
     if (new_size > descr->items_size && !resize_storage(descr, new_size))
         return LB_ERRSPACE;
-    return LB_OKAY;
+    return descr->items_size;
 }
 
 
-- 
2.19.1




More information about the wine-devel mailing list