msi: Use standard window class for combo control and add error checking.

This commit is contained in:
Octavian Voicu 2010-04-19 12:59:01 +03:00 committed by Alexandre Julliard
parent 9c892430ba
commit 2793a4fd52
1 changed files with 5 additions and 2 deletions

View File

@ -1224,7 +1224,7 @@ static UINT msi_dialog_icon_control( msi_dialog *dialog, MSIRECORD *rec )
static UINT msi_dialog_combo_control( msi_dialog *dialog, MSIRECORD *rec )
{
static const WCHAR szCombo[] = { 'C','O','M','B','O','B','O','X',0 };
msi_control *control;
DWORD attributes, style;
style = CBS_AUTOHSCROLL | WS_TABSTOP | WS_GROUP | WS_CHILD;
@ -1236,7 +1236,10 @@ static UINT msi_dialog_combo_control( msi_dialog *dialog, MSIRECORD *rec )
else
style |= CBS_DROPDOWN;
msi_dialog_add_control( dialog, rec, szCombo, style );
control = msi_dialog_add_control( dialog, rec, WC_COMBOBOXW, style );
if (!control)
return ERROR_FUNCTION_FAILED;
return ERROR_SUCCESS;
}