Commit f1b790be authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

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

parent ad020e14
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment