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: ...@@ -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) {
$$ = 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 ); 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