[PATCH] mciwave: Use the ARRAY_SIZE() macro

Andrew Eikum aeikum at codeweavers.com
Fri Aug 10 08:05:09 CDT 2018


Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>

On Mon, Jul 30, 2018 at 09:18:10PM +0200, Michael Stefaniuc wrote:
> Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
> ---
>  dlls/mciwave/mciwave.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/dlls/mciwave/mciwave.c b/dlls/mciwave/mciwave.c
> index fd4d6f6728..0fa9b204f8 100644
> --- a/dlls/mciwave/mciwave.c
> +++ b/dlls/mciwave/mciwave.c
> @@ -427,7 +427,7 @@ static DWORD create_tmp_file(HMMIO* hFile, LPWSTR* pszTmpFileName)
>      szPrefix[2] = 'I';
>      szPrefix[3] = '\0';
>  
> -    if (!GetTempPathW(sizeof(szTmpPath)/sizeof(szTmpPath[0]), szTmpPath)) {
> +    if (!GetTempPathW(ARRAY_SIZE(szTmpPath), szTmpPath)) {
>          WARN("can't retrieve temp path!\n");
>          *pszTmpFileName = NULL;
>          return MCIERR_FILE_NOT_FOUND;
> -- 
> 2.14.4
> 
> 
> 



More information about the wine-devel mailing list