msi: Send the expected data to set_deferred_action_props.
This commit is contained in:
parent
a00aa0391d
commit
82f4e3981b
|
@ -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)
|
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 = strchrW(beg, ';');
|
||||||
*end = '\0';
|
*end = '\0';
|
||||||
|
@ -189,11 +189,10 @@ UINT ACTION_CustomAction(MSIPACKAGE *package,LPCWSTR action, BOOL execute)
|
||||||
LPWSTR action_copy = strdupW(action);
|
LPWSTR action_copy = strdupW(action);
|
||||||
WCHAR *deformated=NULL;
|
WCHAR *deformated=NULL;
|
||||||
|
|
||||||
/* deferred action: [CustomActionData]Action */
|
/* deferred action: [properties]Action */
|
||||||
if ((ptr = strchrW(action_copy, ']')))
|
if ((ptr = strchrW(action_copy, ']')))
|
||||||
{
|
{
|
||||||
deferred_data = action_copy + 1;
|
deferred_data = action_copy;
|
||||||
*ptr = '\0';
|
|
||||||
action = ptr + 1;
|
action = ptr + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue