/[RomCheater]/trunk/Win32/libWin32/Win32/UI/MaskedHexBox.cs
ViewVC logotype

Diff of /trunk/Win32/libWin32/Win32/UI/MaskedHexBox.cs

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

--- trunk/Win32/libWin32/Win32/UI/MaskedHexBox.cs	2012/05/09 20:52:20	88
+++ trunk/Win32/libWin32/Win32/UI/MaskedHexBox.cs	2012/06/02 18:31:40	229
@@ -110,8 +110,9 @@
         public void CreateTypeSize<T>() where T : IConvertible
         {
             Type type = typeof(T);
-            this.TextLength = Marshal.SizeOf(type) * 2;
-            this.MaxLength = this.TextLength;
+            int size = Marshal.SizeOf(type) * 2;
+            this.MaxLength = size;
+            this.TextLength = this.MaxLength;
         }
 
         private int _MaxLength;

 

  ViewVC Help
Powered by ViewVC 1.1.22