msi: Check for a NULL text entry, as it can be blank in the VolumeCostList control

James Hawkins truiken at gmail.com
Sat Feb 24 23:08:12 CST 2007


Hi,

This fixes a crash in the Battlestations Midway installer.

Changelog:
* Check for a NULL text entry, as it can be blank in the VolumeCostList control.

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

-- 
James Hawkins
-------------- next part --------------
diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c
index 28fb2e9..35a192c 100644
--- a/dlls/msi/dialog.c
+++ b/dlls/msi/dialog.c
@@ -2448,6 +2448,8 @@ static void msi_dialog_vcl_add_columns( msi_dialog *dialog, msi_control *control
     static const WCHAR zero[] = {'0',0};
     static const WCHAR negative[] = {'-',0};
 
+    if (!text) return;
+
     while ((begin = strchrW( begin, '{' )) && count < 5)
     {
         if (!(end = strchrW( begin, '}' )))
-- 
1.4.4.2


More information about the wine-patches mailing list