From: Brian Paul Date: Mon, 25 Apr 2016 21:58:10 +0000 (-0600) Subject: os: s/Elements/ARRAY_SIZE/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=419e3865713efc17bf48213154c5a96eaaa89443;p=mesa.git os: s/Elements/ARRAY_SIZE/ Reviewed-by: Jose Fonseca --- diff --git a/src/gallium/auxiliary/os/os_process.c b/src/gallium/auxiliary/os/os_process.c index d2dcd0d7fbc..332e195ef34 100644 --- a/src/gallium/auxiliary/os/os_process.c +++ b/src/gallium/auxiliary/os/os_process.c @@ -68,7 +68,7 @@ os_get_process_name(char *procname, size_t size) char *lpProcessName; char *lpProcessExt; - GetModuleFileNameA(NULL, szProcessPath, Elements(szProcessPath)); + GetModuleFileNameA(NULL, szProcessPath, ARRAY_SIZE(szProcessPath)); lpProcessName = strrchr(szProcessPath, '\\'); lpProcessName = lpProcessName ? lpProcessName + 1 : szProcessPath;