Commit a1f5c0b3 authored by mercury233's avatar mercury233

update SIZE_MESSAGE_BUFFER

parent 79a63bcb
......@@ -392,9 +392,9 @@ namespace Percy
var len = result & 0xFFFF;
if (len > 0)
{
var arr = new byte[4096];
var arr = new byte[0x2000];
dll.get_message(duel, _buffer);
Marshal.Copy(_buffer, arr, 0, 4096);
Marshal.Copy(_buffer, arr, 0, 0x2000);
var breakOut = false;
var stream = new MemoryStream(arr);
var reader = new BinaryReader(stream);
......@@ -1168,7 +1168,7 @@ namespace Percy
//private
private readonly IntPtr _buffer = Marshal.AllocHGlobal(4096);
private readonly IntPtr _buffer = Marshal.AllocHGlobal(0x2000);
private IntPtr duel;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment