Commit 67f83ba7 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Take advantage of the msi_get_deformatted_field function to simplify

some code.
parent 216a4427
......@@ -625,7 +625,6 @@ static LPWSTR msi_get_checkbox_value( msi_dialog *dialog, LPCWSTR prop )
'\'','%','s','\'',0
};
MSIRECORD *rec = NULL;
LPCWSTR val = NULL;
LPWSTR ret = NULL;
/* find if there is a value associated with the checkbox */
......@@ -633,15 +632,11 @@ static LPWSTR msi_get_checkbox_value( msi_dialog *dialog, LPCWSTR prop )
if (!rec)
return ret;
val = MSI_RecordGetString( rec, 2 );
if (val)
ret = msi_get_deformatted_field( dialog->package, rec, 2 );
if( ret && !ret[0] )
{
deformat_string( dialog->package, val, &ret );
if( ret && !ret[0] )
{
msi_free( ret );
ret = NULL;
}
msi_free( ret );
ret = NULL;
}
msiobj_release( &rec->hdr );
if (ret)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment