projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d902504
)
os: s/Elements/ARRAY_SIZE/
author
Brian Paul
<brianp@vmware.com>
Mon, 25 Apr 2016 21:58:10 +0000
(15:58 -0600)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/os/os_process.c
b/src/gallium/auxiliary/os/os_process.c
index d2dcd0d7fbc9e1e58143389b109d363570b38eec..332e195ef349d89850d6f3ee693c5db78f8dc490 100644
(file)
--- 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;