msi: Fix missing alloc check.

This commit is contained in:
Lionel Debroux 2007-12-09 20:14:47 +01:00 committed by Alexandre Julliard
parent affd447db0
commit 1bed47a3b3
1 changed files with 3 additions and 0 deletions

View File

@ -409,6 +409,9 @@ static msi_control *msi_dialog_create_window( msi_dialog *dialog,
style |= WS_CHILD;
control = msi_alloc( sizeof *control + strlenW(name)*sizeof(WCHAR) );
if (!control)
return NULL;
strcpyW( control->name, name );
list_add_head( &dialog->controls, &control->entry );
control->handler = NULL;