James Hawkins : msi: Fix the size allocated for the deferred custom action string.
Module: wine Branch: master Commit: f1b790be0663790ca9d467737aba2c005306e6ad URL: http://source.winehq.org/git/wine.git/?a=commit;h=f1b790be0663790ca9d467737a... Author: James Hawkins <truiken(a)gmail.com> Date: Fri Aug 3 17:10:30 2007 -0700 msi: 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(LPCWSTR action, LPCWSTR actiondata, 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);
participants (1)
-
Alexandre Julliard