/[RomCheater]/trunk/RomCheater.Core/PEData.cs
ViewVC logotype

Diff of /trunk/RomCheater.Core/PEData.cs

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

--- trunk/RomCheater.Core/PEData.cs	2013/06/17 09:31:52	686
+++ trunk/RomCheater.Core/PEData.cs	2014/04/07 11:42:48	795
@@ -25,11 +25,11 @@
 
 
         [Browsable(false)]
-        public uint _VirtualEntryPoint { get; private set; }
+        public ulong _VirtualEntryPoint { get; private set; }
         public string VirtualEntryPoint { get { return string.Format("0x{0:x8}", _VirtualEntryPoint); } }
 
         [Browsable(false)]
-        public uint _VirtualRVA
+        public ulong _VirtualRVA
         {
             get
             {
@@ -75,14 +75,15 @@
             if (iap == null) { throw new ArgumentNullException("iap", "The selected process cannot be null"); }
             Process p = iap.AcceptedProcess;
             reader = new PeHeaderReader(p);
-
-            this._VirtualEntryPoint = (uint)p.MainModule.EntryPointAddress;
+           
             if (this.Is32bitAssembly())
             {
-                this._VirtualImageBase = (uint)p.MainModule.BaseAddress;
+                this._VirtualEntryPoint = (uint)p.MainModule.EntryPointAddress;
+                this._VirtualImageBase = (uint)p.MainModule.BaseAddress;                
             }
             else
             {
+                this._VirtualEntryPoint = (ulong)p.MainModule.EntryPointAddress;
                 this._VirtualImageBase = (ulong)p.MainModule.BaseAddress;
             }
 

 

  ViewVC Help
Powered by ViewVC 1.1.22