[MSI] Fix not showing combobox items (#9165)

Import fix from Wine-11.6, commit https://github.com/wine-mirror/wine/commit/46e5cabca7be1d09d561f6203f073a7bff385d5d

msi: Add ComboBox items, using value if text does not exist.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56296

PR #8971 will upgrade module to Wine-10.0,
so guard the change with `#ifdef __REACTOS__`. Fixes CORE-15709.

Co-authored-by: Maotong Zhang <[email protected]>
This commit is contained in:
Mohammad Amin Mollazadeh
2026-06-16 17:52:31 +03:00
committed by GitHub
co-authored by Maotong Zhang
parent 91146de1cd
commit ea313e6129
+4
View File
@@ -1397,7 +1397,11 @@ static UINT combobox_add_item( MSIRECORD *rec, void *param )
info->items[info->addpos_items] = wcsdup( value );
#ifdef __REACTOS__ /* Import fix from Wine-11.6 */
pos = SendMessageW( info->hwnd, CB_ADDSTRING, 0, (LPARAM)(text ? text : value) );
#else
pos = SendMessageW( info->hwnd, CB_ADDSTRING, 0, (LPARAM)text );
#endif
SendMessageW( info->hwnd, CB_SETITEMDATA, pos, (LPARAM)info->items[info->addpos_items] );
info->addpos_items++;