usp10: Resend - Add funtionality for ScriptStringAnalyse

Alexandre Julliard julliard at winehq.org
Tue Aug 8 13:13:53 CDT 2006


Jeff L <lats at yless4u.com.au> writes:

> +    cMaxItems = 255;                 /* Pick an abritary size for buffers */
> +    analysis = (string_analysis*) pssa;
> +    if  (!*pssa)      {              /* Clean it out and start again  */
> +        prtssa(*pssa);
> +        ScriptStringFree((SCRIPT_STRING_ANALYSIS*)analysis);
> +    }
> +    analysis = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, 
> +                                     sizeof(string_analysis));
> +    *pssa = (string_analysis*)analysis;

I don't follow what you are trying to do here. Why do you print and
free a NULL structure?  And why do you assign it to analysis and then
overwrite it right away with a new allocation?

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list