Commit f21817f7 authored by mercury233's avatar mercury233

fix getPtrString

parent b98dc68d
......@@ -1190,6 +1190,7 @@ namespace Percy
var s = Encoding.UTF8.GetBytes(path);
var ptrFileName = Marshal.AllocHGlobal(s.Length + 1);
Marshal.Copy(s, 0, ptrFileName, s.Length);
Marshal.WriteByte(ptrFileName, s.Length, 0);
return ptrFileName;
}
......
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