Module: wine Branch: master Commit: 1bed47a3b3fbfdb89a5ea560227661b21cbcd03a URL: http://source.winehq.org/git/wine.git/?a=commit;h=1bed47a3b3fbfdb89a5ea56022...
Author: Lionel Debroux lionel_debroux@yahoo.fr Date: Sun Dec 9 20:14:47 2007 +0100
msi: Fix missing alloc check.
---
dlls/msi/dialog.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c index d0e91cd..fae8fcf 100644 --- a/dlls/msi/dialog.c +++ b/dlls/msi/dialog.c @@ -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;