msi: Fix the size allocated for the deferred custom action string

James Hawkins truiken at gmail.com
Fri Aug 3 19:11:04 CDT 2007


On 8/3/07, James Hawkins <truiken at gmail.com> wrote:
> Hi,
>
> This fixes a regression in the Acrobat 8 installer.
>
> Changelog:
> * Fix the size allocated for the deferred custom action string.
>

Please use this patch instead.

-- 
James Hawkins
-------------- next part --------------
From 86c21399ce8e678da423568195056958e888a39b Mon Sep 17 00:00:00 2001
From: James Hawkins <jhawkins at sphere2.smo.corp.google.com>
Date: Fri, 3 Aug 2007 17:10:30 -0700
Subject: [PATCH] * Fix the size allocated for the deferred custom action string.
---
 dlls/msi/custom.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/msi/custom.c b/dlls/msi/custom.c
index 390113e..a44b918 100644
--- a/dlls/msi/custom.c
+++ b/dlls/msi/custom.c
@@ -153,7 +153,8 @@ static LPWSTR msi_get_deferred_action(LP
         return strdupW(action);
 
     len = lstrlenW(action) + lstrlenW(actiondata) +
-          lstrlenW(usersid) + lstrlenW(prodcode) + 5;
+          lstrlenW(usersid) + lstrlenW(prodcode) +
+          lstrlenW(format) - 7;
     deferred = msi_alloc(len * sizeof(WCHAR));
 
     sprintfW(deferred, format, actiondata, usersid, prodcode, action);
-- 
1.4.1


More information about the wine-patches mailing list