[PATCH 1/4] msi: speed up WHERE statement evaluation by evaluating the condition as early as possible

Alexandre Julliard julliard at winehq.org
Wed Aug 31 05:25:11 CDT 2011


Bernhard Loos <bernhardloos at googlemail.com> writes:

> @@ -639,6 +715,8 @@ static UINT WHERE_execute( struct tagMSIVIEW *view, MSIRECORD *record )
>      while ((table = table->next));
>  
>      rows = msi_alloc( wv->table_count * sizeof(*rows) );
> +    memset( rows, 0xFF, sizeof( rows ) );
> +

If the goal is to set them to -1, please do that explicitly. Also
defining some appropriate constant for invalid rows would be even
better.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list