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

Alexandre Julliard julliard at wine.codeweavers.com
Mon Feb 26 07:59:30 CST 2007


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

Author: James Hawkins <truiken at gmail.com>
Date:   Sat Feb 24 23:08:12 2007 -0600

msi: 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(-)

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, '}' )))




More information about the wine-cvs mailing list