Re: [PATCH] usp10: Remove worthless check.

Aric Stewart <[email protected]> Fri, 3 Nov 2017 07:20:10 -0500
Newsgroups gmane.comp.emulators.wine.patches
Message-ID <[email protected]>
Signed-off-by: Aric Stewart <[email protected]>

On 11/2/17 11:22 AM, Andrey Gusev wrote:
> Signed-off-by: Andrey Gusev <[email protected]>
> ---
>   dlls/usp10/usp10.c | 3 ---
>   1 file changed, 3 deletions(-)
> 
> diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c
> index 59abbad778..5d257b2c1c 100644
> --- a/dlls/usp10/usp10.c
> +++ b/dlls/usp10/usp10.c
> @@ -3028,9 +3028,6 @@ HRESULT WINAPI ScriptIsComplex(const WCHAR *chars, int len, DWORD flag)
>   
>       for (i = 0; i < len; i+=consumed)
>       {
> -        if (i >= len)
> -            break;
> -
>           if ((flag & SIC_ASCIIDIGIT) && chars[i] >= 0x30 && chars[i] <= 0x39)
>               return S_OK;
>   
>