2007-11-15 Dick Porter <dick@ximian.com>
authorDick Porter <dick@acm.org>
Thu, 15 Nov 2007 17:13:46 +0000 (17:13 -0000)
committerDick Porter <dick@acm.org>
Thu, 15 Nov 2007 17:13:46 +0000 (17:13 -0000)
* Process.cs: Pass the process handle to GetModules_internal();

svn path=/trunk/mcs/; revision=89687

mcs/class/System/System.Diagnostics/ChangeLog
mcs/class/System/System.Diagnostics/Process.cs

index 34c710eca6617f4c094ce6a5c26fdc0827396771..a828b62401a6cab6efbf9bceeb606057de7d87e3 100644 (file)
@@ -1,3 +1,7 @@
+2007-11-15  Dick Porter  <dick@ximian.com>
+
+       * Process.cs: Pass the process handle to GetModules_internal();
+
 2007-11-13  Atsushi Enomoto  <atsushi@ximian.com>
 
        * Process.cs : ... and it exposed some missing attributes.
index 179296aa8aa6f613c9d6185b42f283880aa18c57..ef58c4bb277e4203757297765a04cf59d065a825 100644 (file)
@@ -320,7 +320,7 @@ namespace System.Diagnostics {
                 * element 0.
                 */
                [MethodImplAttribute(MethodImplOptions.InternalCall)]
-               private extern ProcessModule[] GetModules_internal();
+               private extern ProcessModule[] GetModules_internal(IntPtr handle);
 
                private ProcessModuleCollection module_collection;
                
@@ -329,7 +329,7 @@ namespace System.Diagnostics {
                public ProcessModuleCollection Modules {
                        get {
                                if(module_collection==null) {
-                                       module_collection=new ProcessModuleCollection(GetModules_internal());
+                                       module_collection=new ProcessModuleCollection(GetModules_internal(process_handle));
                                }
 
                                return(module_collection);