[Wine-patches] test6

Boris Savelev =?iso-8859-1?q?boris_=CE=C1_etersoft=2Eru?=
Вс Янв 11 19:57:14 MSK 2009


test message with attach
-- 
С уважением, Борис Савельев
----------- следующая часть -----------
From 5680940fd4fb29b3d2f99c93393baaf5376770b1 Mon Sep 17 00:00:00 2001
From: Anton Rudnev <mibori на builder.office.etersoft.ru>
Date: Sun, 11 Jan 2009 17:11:12 +0300
Subject: [PATCH] msi: fix ITERATE_InstallService (correct msi_alloc length for null `arg')

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

diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index 342ec8b..6bdde8a 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -4717,7 +4717,7 @@ static UINT ITERATE_InstallService(MSIRECORD *rec, LPVOID param)
     }
 
     arg = MSI_RecordGetString(rowArg, 4);
-    binary = msi_alloc(sizeof(WCHAR) * (strlenW(file->TargetPath) + strlenW(arg) + 4));
+    binary = msi_alloc(sizeof(WCHAR) * (strlenW(file->TargetPath) + (arg? strlenW(arg): 0) + 4));
     sprintfW(binary, tmpl, file->TargetPath, arg);
 
     service = CreateServiceW(hscm, name, disp, GENERIC_ALL, serv_type,
-- 
1.6.0.2.GIT



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