ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater/Docking/PIDSelector.cs
(Generate patch)

Comparing trunk/RomCheater/Docking/PIDSelector.cs (file contents):
Revision 352 by william, Thu Jun 7 23:48:59 2012 UTC vs.
Revision 353 by william, Sat Jun 9 21:19:35 2012 UTC

--- trunk/RomCheater/Docking/PIDSelector.cs	2012/06/09 21:11:02	352
+++ trunk/RomCheater/Docking/PIDSelector.cs	2012/06/09 21:19:35	353
@@ -274,10 +274,9 @@ namespace RomCheater.Docking
                 {
                     if (lstProcessList.SelectedItems[0] != null)
                     {
-                        string missing_name = lstProcessList.SelectedItems[0].Text;
-                      int  missing_pid = Convert.ToInt32(lstProcessList.SelectedItems[0].SubItems[1].Text);
-                      logger.Warn.WriteLine("Connection to selected process ({0}) has been lost...Selecting the first available process.", string.Format("0x{0:x8}:{1}", missing_pid, missing_name));
-                      MessageBox.Show(string.Format("Connection to selected process ({0}) has been lost...Selecting the first available process.", string.Format("0x{0:x8}:{1}", missing_pid, missing_name)), "Connection to selected process lost", MessageBoxButtons.OK, MessageBoxIcon.Warning);
+                        int missing_pid = this.ProcessPID;
+                        logger.Warn.WriteLine("Connection to selected process ({0}) has been lost...Selecting the first available process.", missing_pid);
+                        MessageBox.Show(string.Format("Connection to selected process ({0}) has been lost...Selecting the first available process.", missing_pid), "Connection to selected process lost", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                     }                    
                     isAutoRefreshing = false;
                     lstProcessList.Items[0].Selected = false;