[PATCH] usp10: Remove redundant comparison.

Aric Stewart aric at codeweavers.com
Tue Oct 10 11:26:32 CDT 2017


Signed-off-by: Aric Stewart <aric at codeweavers.com>

On 10/10/17 8:44 AM, Andrey Gusev wrote:
> Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
> ---
>   dlls/usp10/usp10.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c
> index 0b8c28e614..59abbad778 100644
> --- a/dlls/usp10/usp10.c
> +++ b/dlls/usp10/usp10.c
> @@ -2641,7 +2641,7 @@ HRESULT WINAPI ScriptCPtoX(int iCP,
>       iPosX = 0.0;
>       for (item=0; item < iCP && item < cChars; item++)
>       {
> -        if (iSpecial == -1 && (iCluster == -1 || (iCluster != -1 && iCluster+clust_size <= item)))
> +        if (iSpecial == -1 && (iCluster == -1 || iCluster+clust_size <= item))
>           {
>               int check;
>               int clust = pwLogClust[item];
> 



More information about the wine-patches mailing list