[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: [PATCH] usp10: Use the available ARRAY_SIZE() macro
From:       Aric Stewart <aric () codeweavers ! com>
Date:       2018-02-28 16:39:09
Message-ID: ccaadc89-8601-0f11-927c-ed485d9fcd06 () codeweavers ! com
[Download RAW message or body]

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


On 2/27/18 6:11 PM, Michael Stefaniuc wrote:
> Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
> ---
>   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 5f50332712..4daba34350 100644
> --- a/dlls/usp10/usp10.c
> +++ b/dlls/usp10/usp10.c
> @@ -1155,7 +1155,7 @@ HRESULT WINAPI ScriptGetProperties(const SCRIPT_PROPERTIES ***props, int *num)
>   
>       if (!props && !num) return E_INVALIDARG;
>   
> -    if (num) *num = sizeof(script_props)/sizeof(script_props[0]);
> +    if (num) *num = ARRAY_SIZE(script_props);
>       if (props) *props = script_props;
>   
>       return S_OK;
> 



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic