=?UTF-8?Q?Gabriel=20Iv=C4=83ncescu=20?=: user32/listbox: Return proper value for LB_INITSTORAGE.

Alexandre Julliard julliard at winehq.org
Mon Feb 11 16:12:11 CST 2019


Module: wine
Branch: master
Commit: 0dd9eaf4e32ad15be524fefa79bc01034c454b2e
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=0dd9eaf4e32ad15be524fefa79bc01034c454b2e

Author: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Date:   Fri Feb  8 13:17:21 2019 +0200

user32/listbox: Return proper value for LB_INITSTORAGE.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard 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 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;
 }
 
 




More information about the wine-cvs mailing list