Do not limit properties to 256 characters when evaluating them.

This commit is contained in:
Aric Stewart 2005-02-09 13:26:16 +00:00 committed by Alexandre Julliard
parent 641be42a88
commit 0f65057aed
1 changed files with 14 additions and 6 deletions

View File

@ -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 );
} }