msi: Send the expected data to set_deferred_action_props.

This commit is contained in:
James Hawkins 2007-06-18 09:40:34 -07:00 committed by Alexandre Julliard
parent a00aa0391d
commit 82f4e3981b
1 changed files with 3 additions and 4 deletions

View File

@ -157,7 +157,7 @@ static LPWSTR msi_get_deferred_action(LPCWSTR action, LPCWSTR actiondata,
static void set_deferred_action_props(MSIPACKAGE *package, LPWSTR deferred_data)
{
LPWSTR end, beg = deferred_data;
LPWSTR end, beg = deferred_data + 1;
end = strchrW(beg, ';');
*end = '\0';
@ -189,11 +189,10 @@ UINT ACTION_CustomAction(MSIPACKAGE *package,LPCWSTR action, BOOL execute)
LPWSTR action_copy = strdupW(action);
WCHAR *deformated=NULL;
/* deferred action: [CustomActionData]Action */
/* deferred action: [properties]Action */
if ((ptr = strchrW(action_copy, ']')))
{
deferred_data = action_copy + 1;
*ptr = '\0';
deferred_data = action_copy;
action = ptr + 1;
}