Skip to content

Commit db76c32

Browse files
committed
Changed logic to represent comment.
1 parent 62d6481 commit db76c32

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

ReClass.NET/Memory/RemoteProcess.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Diagnostics.Contracts;
44
using System.Linq;
@@ -341,7 +341,7 @@ public string ReadRemoteString(Encoding encoding, IntPtr address, int length)
341341
Contract.Requires(length >= 0);
342342
Contract.Ensures(Contract.Result<string>() != null);
343343

344-
var data = ReadRemoteMemory(address, length);
344+
var data = ReadRemoteMemory(address, length * encoding.GetSimpleByteCountPerChar());
345345

346346
try
347347
{

ReClass.NET/Nodes/BaseTextPtrNode.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Diagnostics.Contracts;
33
using System.Drawing;
44
using System.Text;
@@ -32,7 +32,7 @@ public Size DrawText(ViewInfo view, int x, int y, string type)
3232
}
3333

3434
var ptr = view.Memory.ReadIntPtr(Offset);
35-
var text = view.Memory.Process.ReadRemoteString(Encoding, ptr, 64 * Encoding.GetSimpleByteCountPerChar());
35+
var text = view.Memory.Process.ReadRemoteString(Encoding, ptr, 64);
3636

3737
DrawInvalidMemoryIndicator(view, y);
3838

0 commit comments

Comments
 (0)