/[RomCheater]/trunk/RomCheater/PIDSelector.cs
ViewVC logotype

Diff of /trunk/RomCheater/PIDSelector.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/RomCheater/PIDSelector.cs	2012/05/09 22:23:18	93
+++ trunk/RomCheater/PIDSelector.cs	2012/05/10 09:03:13	100
@@ -91,21 +91,21 @@
             large_image_list = new ImageList();
             ListViewItem item = new ListViewItem();
             // process
-            item.Text = p.ProcessInfo.MainModule.ModuleName;
+            item.Text = p.FileName;
             if (p.ProcessIcon != null)
             {
-                Bitmap small_image = ProcContainer.CreateIconFromProcess(p.ProcessInfo, 1);
-                Bitmap large_image = ProcContainer.CreateIconFromProcess(p.ProcessInfo, 2);
-                small_image_list.Images.Add(p.ProcessInfo.MainModule.FileName, ProcContainer.CreateIconFromProcess(p.ProcessInfo, 1));
+                Bitmap small_image = ProcContainer.CreateIconFromProcess(p, 1);
+                Bitmap large_image = ProcContainer.CreateIconFromProcess(p, 2);
+                small_image_list.Images.Add(p.FileName, ProcContainer.CreateIconFromProcess(p, 1));
                 small_image_list.ImageSize = new Size(small_image.Width, small_image.Height);
-                large_image_list.Images.Add(p.ProcessInfo.MainModule.FileName, ProcContainer.CreateIconFromProcess(p.ProcessInfo, 2));
+                large_image_list.Images.Add(p.ProcessInfo.MainModule.FileName, ProcContainer.CreateIconFromProcess(p, 2));
                 large_image_list.ImageSize = new Size(large_image.Width, large_image.Height);
-                item.ImageKey = p.ProcessInfo.MainModule.FileName;
+                item.ImageKey = p.FileName;
             }
             // pid
             item.SubItems.Add(p.ProcessInfo.Id.ToString());
             // FullPath
-            item.SubItems.Add(p.ProcessInfo.MainModule.FileName);
+            item.SubItems.Add(p.FileName);
             if (!items.Contains(item)) items.Add(item);
         }
     }

 

  ViewVC Help
Powered by ViewVC 1.1.22