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

This commit is contained in:
James Hawkins 2007-08-03 17:10:30 -07:00 committed by Alexandre Julliard
parent ad020e145e
commit f1b790be06
1 changed files with 2 additions and 1 deletions

View File

@ -153,7 +153,8 @@ static LPWSTR msi_get_deferred_action(LPCWSTR action, LPCWSTR actiondata,
return strdupW(action); return strdupW(action);
len = lstrlenW(action) + lstrlenW(actiondata) + len = lstrlenW(action) + lstrlenW(actiondata) +
lstrlenW(usersid) + lstrlenW(prodcode) + 5; lstrlenW(usersid) + lstrlenW(prodcode) +
lstrlenW(format) - 7;
deferred = msi_alloc(len * sizeof(WCHAR)); deferred = msi_alloc(len * sizeof(WCHAR));
sprintfW(deferred, format, actiondata, usersid, prodcode, action); sprintfW(deferred, format, actiondata, usersid, prodcode, action);