projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df27ba1
)
[runtime] Fix the initialization of the pid array in ves_icall_System_Diagnostics_Pro...
author
Zoltan Varga
<vargaz@gmail.com>
Wed, 13 May 2015 16:40:53 +0000
(18:40 +0200)
committer
Zoltan Varga
<vargaz@gmail.com>
Wed, 13 May 2015 16:41:26 +0000
(18:41 +0200)
mono/metadata/process.c
patch
|
blob
|
history
diff --git
a/mono/metadata/process.c
b/mono/metadata/process.c
index 86e7d187d34121735941b9dd30b33119254bad86..121f6ce73619af42b2b54a265fcd25b85b3df531 100644
(file)
--- a/
mono/metadata/process.c
+++ b/
mono/metadata/process.c
@@
-807,7
+807,7
@@
ves_icall_System_Diagnostics_Process_GetProcesses_internal (void)
}
procs = mono_array_new (mono_domain_get (), mono_get_int32_class (), count);
if (sizeof (guint32) == sizeof (gpointer)) {
- memcpy (mono_array_addr (procs, guint32, 0), pidarray, count);
+ memcpy (mono_array_addr (procs, guint32, 0), pidarray, count
* sizeof (gint32)
);
} else {
for (i = 0; i < count; ++i)
*(mono_array_addr (procs, guint32, i)) = GPOINTER_TO_UINT (pidarray [i]);