GeezerVison is showing github.com — Use the given Encoding instance. · ReClassNET/ReClass.NET@b7ebbae
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: ReClass.NET/Memory/RemoteProcess.cs +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -372,7 +372,7 @@ public string ReadRemoteString(Encoding encoding, IntPtr address, int length) |
372 | 372 | /// <summary>Reads a string from the address in the remote process with the given length and encoding. The string gets truncated at the first zero character.</summary> |
373 | 373 | /// <param name="encoding">The encoding used by the string.</param> |
374 | 374 | /// <param name="address">The address of the string.</param> |
375 | | - /// <param name="length">The length of the string.</param> |
| 375 | + /// <param name="length">The maximum length of the string.</param> |
376 | 376 | /// <returns>The string.</returns> |
377 | 377 | public string ReadRemoteStringUntilFirstNullCharacter(Encoding encoding, IntPtr address, int length) |
378 | 378 | { |
@@ -391,7 +391,7 @@ public string ReadRemoteStringUntilFirstNullCharacter(Encoding encoding, IntPtr |
391 | 391 |
|
392 | 392 | try |
393 | 393 | { |
394 | | - return Encoding.UTF8.GetString(data, 0, Math.Min(index, data.Length)); |
| 394 | + return encoding.GetString(data, 0, Math.Min(index, data.Length)); |
395 | 395 | } |
396 | 396 | catch |
397 | 397 | { |
|