os: s/Elements/ARRAY_SIZE/
authorBrian Paul <brianp@vmware.com>
Mon, 25 Apr 2016 21:58:10 +0000 (15:58 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 27 Apr 2016 16:23:19 +0000 (10:23 -0600)
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/os/os_process.c

index d2dcd0d7fbc9e1e58143389b109d363570b38eec..332e195ef349d89850d6f3ee693c5db78f8dc490 100644 (file)
@@ -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;