James Hawkins : msi: Assign the property to path if the property is empty.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Oct 4 04:25:14 CDT 2006


Module: wine
Branch: master
Commit: e3496be256a563c97e91871ef21f149bae4d63be
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e3496be256a563c97e91871ef21f149bae4d63be

Author: James Hawkins <truiken at gmail.com>
Date:   Tue Oct  3 14:59:52 2006 -0700

msi: Assign the property to path if the property is empty.

---

 dlls/msi/dialog.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c
index fcbd766..b4e9ce3 100644
--- a/dlls/msi/dialog.c
+++ b/dlls/msi/dialog.c
@@ -1456,6 +1456,9 @@ static void msi_dialog_update_pathedit( 
     prop = msi_dialog_dup_property( dialog, control->property, indirect );
 
     path = msi_dup_property( dialog->package, prop );
+    if (!path)
+        path = prop;
+
     SetWindowTextW( control->hwnd, path );
     SendMessageW( control->hwnd, EM_SETSEL, 0, -1 );
 
@@ -2083,7 +2086,10 @@ static void msi_dialog_update_directory_
 
     indirect = control->attributes & msidbControlAttributesIndirect;
     prop = msi_dialog_dup_property( dialog, control->property, indirect );
+
     path = msi_dup_property( dialog->package, prop );
+    if (!path)
+        path = prop;
 
     PathStripPathW( path );
     PathRemoveBackslashW( path );
@@ -2140,7 +2146,10 @@ static void msi_dialog_update_directory_
 
     indirect = control->attributes & msidbControlAttributesIndirect;
     prop = msi_dialog_dup_property( dialog, control->property, indirect );
+
     path = msi_dup_property( dialog->package, prop );
+    if (!path)
+        path = prop;
 
     lstrcpyW( dir_spec, path );
     lstrcatW( dir_spec, asterisk );
@@ -2182,6 +2191,8 @@ UINT msi_dialog_directorylist_up( msi_di
     prop = msi_dialog_dup_property( dialog, control->property, indirect );
 
     path = msi_dup_property( dialog->package, prop );
+    if (!path)
+        path = prop;
 
     /* strip off the last directory */
     ptr = PathFindFileNameW( path );
@@ -2230,7 +2241,10 @@ static UINT msi_dialog_dirlist_handler( 
 
     indirect = control->attributes & msidbControlAttributesIndirect;
     prop = msi_dialog_dup_property( dialog, control->property, indirect );
+
     path = msi_dup_property( dialog->package, prop );
+    if (!path)
+        path = prop;
 
     lstrcpyW( new_path, path );
     lstrcatW( new_path, text );




More information about the wine-cvs mailing list