/[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	2014/04/07 11:43:31	796
+++ trunk/RomCheater.Core/PEData.cs	2014/04/07 12:03:17	797
@@ -26,7 +26,7 @@
 
         [Browsable(false)]
         public ulong _VirtualEntryPoint { get; private set; }
-        public string VirtualEntryPoint { get { return string.Format("0x{0:x8}", _VirtualEntryPoint); } }
+        public string VirtualEntryPoint { get { return string.Format("0x{0}", _VirtualEntryPoint.ToString("X")); } }
 
         [Browsable(false)]
         public ulong _VirtualRVA
@@ -43,7 +43,7 @@
                 }
             }
         }
-        public string VirtualRVA { get { return string.Format("0x{0:x8}", _VirtualRVA); } }
+        public string VirtualRVA { get { return string.Format("0x{0}", _VirtualRVA.ToString("X")); } }
 
         [Browsable(false)]
         public ulong _VirtualImageBase { get; private set; }
@@ -51,14 +51,7 @@
         {
             get
             {
-                if (this.Is32bitAssembly())
-                {
-                    return string.Format("0x{0:x8}", _VirtualImageBase);
-                }
-                else
-                {
-                    return string.Format("0x{0:x16}", _VirtualImageBase);
-                }
+                return string.Format("0x{0}", _VirtualImageBase.ToString("X"));
             }
         }
 

 

  ViewVC Help
Powered by ViewVC 1.1.22