msi: Fix skipping a NULL record.
This commit is contained in:
parent
60401737c6
commit
45d7d6a4e1
|
@ -544,6 +544,10 @@ static FORMSTR *format_replace(FORMAT *format, BOOL propfound, BOOL nonprop,
|
||||||
format->deformatted = str;
|
format->deformatted = str;
|
||||||
format->len = size - 1;
|
format->len = size - 1;
|
||||||
|
|
||||||
|
/* don't reformat the NULL */
|
||||||
|
if (replace && !*replace)
|
||||||
|
format->n++;
|
||||||
|
|
||||||
if (!replace)
|
if (!replace)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
@ -727,9 +731,6 @@ static UINT replace_stack(FORMAT *format, STACK *stack, STACK *values)
|
||||||
msi_free(replaced);
|
msi_free(replaced);
|
||||||
format->n = beg->n + beg->len;
|
format->n = beg->n + beg->len;
|
||||||
|
|
||||||
if (type == FORMAT_PROPNULL)
|
|
||||||
format->n++;
|
|
||||||
|
|
||||||
top = stack_peek(stack);
|
top = stack_peek(stack);
|
||||||
if (top)
|
if (top)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue