[Wine-patches] [eterhack] msi: Fix crash while installing Kompas 3D v10 (eterbug #818).

Alexander Morozov amorozov на etersoft.ru
Вт Июл 28 17:09:16 MSD 2009


----------- следующая часть -----------
From 3f7f24c1a411eab2933ef7beb3e3f76f0941633d Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Tue, 28 Jul 2009 16:32:38 +0400
Subject: [eterhack] msi: Fix crash while installing Kompas 3D v10 (eterbug #818).

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

diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index 09f1d8a..3af3114 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -5378,9 +5378,11 @@ static UINT ITERATE_WriteEnvironmentString( MSIRECORD *rec, LPVOID param )
          'S','e','s','s','i','o','n',' ','M','a','n','a','g','e','r','\\',
          'E','n','v','i','r','o','n','m','e','n','t',0};
     static const WCHAR semicolon[] = {';',0};
+    static const WCHAR empty[] = {0};
 
     name = MSI_RecordGetString(rec, 2);
     value = MSI_RecordGetString(rec, 3);
+    if (!value) value = empty;
 
     res = env_set_flags(&name, &value, &flags);
     if (res != ERROR_SUCCESS)
-- 
1.6.3.3



Подробная информация о списке рассылки Wine-patches