mirror of
https://github.com/reactos/wine.git
synced 2025-02-15 18:37:49 +00:00
msi: Remove redundant NULL checks before msi_free().
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c7411a6390
commit
4a2809166c
@ -4309,7 +4309,7 @@ static UINT event_end_dialog( msi_dialog *dialog, const WCHAR *argument )
|
||||
static UINT pending_event_end_dialog( msi_dialog *dialog, const WCHAR *argument )
|
||||
{
|
||||
dialog->pending_event = event_end_dialog;
|
||||
if (dialog->pending_argument) msi_free( dialog->pending_argument );
|
||||
msi_free( dialog->pending_argument );
|
||||
dialog->pending_argument = strdupW( argument );
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
@ -4327,7 +4327,7 @@ static UINT event_new_dialog( msi_dialog *dialog, const WCHAR *argument )
|
||||
static UINT pending_event_new_dialog( msi_dialog *dialog, const WCHAR *argument )
|
||||
{
|
||||
dialog->pending_event = event_new_dialog;
|
||||
if (dialog->pending_argument) msi_free( dialog->pending_argument );
|
||||
msi_free( dialog->pending_argument );
|
||||
dialog->pending_argument = strdupW( argument );
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
@ -4352,7 +4352,7 @@ static UINT event_spawn_dialog( msi_dialog *dialog, const WCHAR *argument )
|
||||
static UINT pending_event_spawn_dialog( msi_dialog *dialog, const WCHAR *argument )
|
||||
{
|
||||
dialog->pending_event = event_spawn_dialog;
|
||||
if (dialog->pending_argument) msi_free( dialog->pending_argument );
|
||||
msi_free( dialog->pending_argument );
|
||||
dialog->pending_argument = strdupW( argument );
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user