Watch
2
0
Fork
You've already forked raylib-cs
0

Fix conflicts

This commit is contained in:
Rgebee 2023-08-07 20:01:43 +01:00
commit 22c39c1d6a

View file

@ -13,7 +13,7 @@ namespace Raylib_cs
public UTF8Buffer(string text) public UTF8Buffer(string text)
{ {
_data = Marshal.StringToCoTaskMemUTF8(text); _data = Marshal.StringToHGlobalAnsi(text);
} }
public unsafe sbyte* AsPointer() public unsafe sbyte* AsPointer()
@ -23,7 +23,7 @@ namespace Raylib_cs
public void Dispose() public void Dispose()
{ {
Marshal.FreeCoTaskMem(_data); Marshal.FreeHGlobal(_data);
} }
} }