msi: Avoid using dialog record after free.

This commit is contained in:
Dmitry Timoshkov 2015-08-18 17:40:05 +08:00 committed by Alexandre Julliard
parent e67a00b466
commit 2ad9312f02
1 changed files with 5 additions and 2 deletions

View File

@ -3664,8 +3664,11 @@ static LRESULT msi_dialog_oncreate( HWND hwnd, LPCREATESTRUCTW cs )
if (!dialog->default_font)
{
dialog->default_font = strdupW(dfv);
msiobj_release( &rec->hdr );
if (!dialog->default_font) return -1;
if (!dialog->default_font)
{
msiobj_release( &rec->hdr );
return -1;
}
}
title = msi_get_deformatted_field( dialog->package, rec, 7 );