summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/os/os_process.c2
1 files changed, 1 insertions, 1 deletions
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;