[PATCH] wineps.drv: check for GDI_ERROR in LoadTable()

Nikolay Sivov nsivov at codeweavers.com
Fri Nov 9 11:50:43 CST 2018


On 11/9/18 4:21 PM, Wolfgang Walter wrote:

>       if(table->MS_tag == MS_MAKE_TAG('g','d','i','r')) return TRUE;
>       table->len = GetFontData(hdc, table->MS_tag, 0, NULL, 0);
> +    table->check = 0;
> +    if(table->len == GDI_ERROR) {
> +        table->len = 0;
> +        return TRUE;
> +    }
> +    if(table->len > (0xfffffffflu - 3)) {
> +        table->len = 0;
> +        return FALSE;
> +    }

What is the second condition for?




More information about the wine-devel mailing list