mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
C++ std string length fix
Send the correct string size to stdStringCtorCString
This commit is contained in:
parent
ea5d878042
commit
4c29af6a85
1 changed files with 2 additions and 2 deletions
|
|
@ -31,8 +31,8 @@ namespace Dalamud.Game.Internal.Libc {
|
|||
var pString = Marshal.AllocHGlobal(256);
|
||||
|
||||
// Initialize a string
|
||||
var npos = new IntPtr(0xFFFFFFFF); // assumed to be -1 (0xFFFFFFFF in x86, 0xFFFFFFFF_FFFFFFFF in amd64)
|
||||
var pReallocString = this.stdStringCtorCString(pString, content, npos);
|
||||
var size = new IntPtr(content.Length);
|
||||
var pReallocString = this.stdStringCtorCString(pString, content, size);
|
||||
|
||||
//Log.Verbose("Prev: {Prev} Now: {Now}", pString, pReallocString);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue