Hans Leidekker : msi: Avoid a crash in msi_dialog_handle_event.
Alexandre Julliard
julliard at winehq.org
Wed Jan 30 13:43:23 CST 2013
Module: wine
Branch: master
Commit: 8df6708af44bdd4850cda3b1533c614bc586c1ce
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8df6708af44bdd4850cda3b1533c614bc586c1ce
Author: Hans Leidekker <hans at codeweavers.com>
Date: Wed Jan 30 16:27:54 2013 +0100
msi: Avoid a crash in msi_dialog_handle_event.
---
dlls/msi/dialog.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c
index 4d8564d..1e0e23e 100644
--- a/dlls/msi/dialog.c
+++ b/dlls/msi/dialog.c
@@ -692,7 +692,7 @@ void msi_dialog_handle_event( msi_dialog* dialog, LPCWSTR control,
else if ( !strcmpW( attribute, szProperty ) )
{
MSIFEATURE *feature = msi_seltree_get_selected_feature( ctrl );
- msi_dialog_set_property( dialog->package, ctrl->property, feature->Directory );
+ if (feature) msi_dialog_set_property( dialog->package, ctrl->property, feature->Directory );
}
else if ( !strcmpW( attribute, szSelectionPath ) )
{
More information about the wine-cvs
mailing list