Commit 0f65057a authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

Do not limit properties to 256 characters when evaluating them.

parent 641be42a
......@@ -448,14 +448,22 @@ symbol_s:
{
DWORD sz;
COND_input* cond = (COND_input*) info;
$$ = HeapAlloc( GetProcessHeap(), 0, 0x100*sizeof (WCHAR) );
/* Lookup the identifier */
sz=0x100;
if (MSI_GetPropertyW(cond->package,$1,$$,&sz) != ERROR_SUCCESS)
sz = 0;
MSI_GetPropertyW(cond->package, $1, NULL, &sz);
if (sz == 0)
{
$$ = HeapAlloc( GetProcessHeap(), 0 ,sizeof(WCHAR));
$$[0] = 0;
}
else
{
$$[0]=0;
sz ++;
$$ = HeapAlloc( GetProcessHeap(), 0, sz*sizeof (WCHAR) );
/* Lookup the identifier */
MSI_GetPropertyW(cond->package,$1,$$,&sz);
}
HeapFree( GetProcessHeap(), 0, $1 );
}
......
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