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

Comparing trunk/RomCheater.PluginFramework/Core/ProcContainer.cs (file contents):
Revision 100 by william, Thu May 10 09:03:13 2012 UTC vs.
Revision 101 by william, Thu May 10 09:53:16 2012 UTC

# Line 16 | Line 16 | namespace RomCheater.PluginFramework.Cor
16              : this()
17          {
18              this.ProcessInfo = process;
19 <            string fname = ThreadControl.GetProcessFilename(process);
20 <            FileInfo fi = new FileInfo(fname);
19 >            FileInfo fi = null;
20 >            string fname = "";
21 >            try
22 >            {
23 >                fname = ProcessModeleInfoEx.GetMainModulePath(process);
24 >                fi = new FileInfo(fname);
25 >            }
26 >            catch (Exception ex)
27 >            {
28 >                throw;
29 >            }
30              this.FileName = fi.FullName;
31              this.Name = fi.Name;
32              this.CreateProcessIcon(4);
# Line 26 | Line 35 | namespace RomCheater.PluginFramework.Cor
35              : this()
36          {
37              this.ProcessInfo = process; this.ProcessIcon = icon.ToBitmap();
38 <            string fname = ThreadControl.GetProcessFilename(process);
38 >            string fname = ProcessModeleInfoEx.GetMainModulePath(process);
39              FileInfo fi = new FileInfo(fname);
40              this.FileName = fi.FullName;
41              this.Name = fi.Name;
# Line 35 | Line 44 | namespace RomCheater.PluginFramework.Cor
44              : this()
45          {
46              this.ProcessInfo = process; this.ProcessIcon = icon;
47 <            string fname = ThreadControl.GetProcessFilename(process);
47 >            string fname = ProcessModeleInfoEx.GetMainModulePath(process);
48              FileInfo fi = new FileInfo(fname);
49              this.FileName = fi.FullName;
50              this.Name = fi.Name;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines