[PATCH 3/5] comctl32/listbox: Return proper value for LB_INITSTORAGE

Gabriel Ivăncescu gabrielopcode at gmail.com
Thu Jan 31 09:23:21 CST 2019


Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---
 dlls/comctl32/listbox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/comctl32/listbox.c b/dlls/comctl32/listbox.c
index 498c549..f1ecc52 100644
--- a/dlls/comctl32/listbox.c
+++ b/dlls/comctl32/listbox.c
@@ -706,7 +706,7 @@ static LRESULT LISTBOX_InitStorage( LB_DESCR *descr, INT nb_items )
 {
     if (!resize_storage(descr, descr->nb_items + nb_items))
         return LB_ERRSPACE;
-    return LB_OKAY;
+    return descr->items_size;
 }
 
 
-- 
2.19.1




More information about the wine-devel mailing list