Do not limit properties to 256 characters when evaluating them.
This commit is contained in:
parent
641be42a88
commit
0f65057aed
|
@ -448,14 +448,22 @@ symbol_s:
|
||||||
{
|
{
|
||||||
DWORD sz;
|
DWORD sz;
|
||||||
COND_input* cond = (COND_input*) info;
|
COND_input* cond = (COND_input*) info;
|
||||||
$$ = HeapAlloc( GetProcessHeap(), 0, 0x100*sizeof (WCHAR) );
|
|
||||||
|
|
||||||
/* Lookup the identifier */
|
sz = 0;
|
||||||
|
MSI_GetPropertyW(cond->package, $1, NULL, &sz);
|
||||||
sz=0x100;
|
if (sz == 0)
|
||||||
if (MSI_GetPropertyW(cond->package,$1,$$,&sz) != ERROR_SUCCESS)
|
|
||||||
{
|
{
|
||||||
$$[0]=0;
|
$$ = HeapAlloc( GetProcessHeap(), 0 ,sizeof(WCHAR));
|
||||||
|
$$[0] = 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sz ++;
|
||||||
|
$$ = HeapAlloc( GetProcessHeap(), 0, sz*sizeof (WCHAR) );
|
||||||
|
|
||||||
|
/* Lookup the identifier */
|
||||||
|
|
||||||
|
MSI_GetPropertyW(cond->package,$1,$$,&sz);
|
||||||
}
|
}
|
||||||
HeapFree( GetProcessHeap(), 0, $1 );
|
HeapFree( GetProcessHeap(), 0, $1 );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue