Mesa (master): os: s/Elements/ARRAY_SIZE/

Brian Paul brianp at kemper.freedesktop.org
Wed Apr 27 16:24:17 UTC 2016


Module: Mesa
Branch: master
Commit: 419e3865713efc17bf48213154c5a96eaaa89443
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=419e3865713efc17bf48213154c5a96eaaa89443

Author: Brian Paul <brianp at vmware.com>
Date:   Mon Apr 25 15:58:10 2016 -0600

os: s/Elements/ARRAY_SIZE/

Reviewed-by: Jose Fonseca <jfonseca at vmware.com>

---

 src/gallium/auxiliary/os/os_process.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/os/os_process.c b/src/gallium/auxiliary/os/os_process.c
index d2dcd0d..332e195 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;




More information about the mesa-commit mailing list