You've already forked linux-packaging-mono
Imported Upstream version 6.4.0.137
Former-commit-id: 943baa9f16a098c33e129777827f3a9d20da00d6
This commit is contained in:
parent
e9207cf623
commit
ef583813eb
@ -197,7 +197,7 @@ namespace MonoTests.System.Runtime.InteropServices
|
||||
if (srcString.Contains("\0"))
|
||||
continue;
|
||||
|
||||
IntPtr ptrString = Marshal.StringToAllocatedMemoryUTF8(srcString);
|
||||
IntPtr ptrString = Marshal.StringToCoTaskMemUTF8(srcString);
|
||||
string retString = Marshal.PtrToStringUTF8(ptrString);
|
||||
|
||||
Assert.AreEqual (srcString, retString, "#" + i);
|
||||
@ -206,7 +206,7 @@ namespace MonoTests.System.Runtime.InteropServices
|
||||
string retString2 = Marshal.PtrToStringUTF8(ptrString, srcString.Length - 1);
|
||||
Assert.AreEqual (srcString.Substring(0, srcString.Length - 1), retString2, "#s" + i);
|
||||
}
|
||||
Marshal.FreeHGlobal(ptrString);
|
||||
Marshal.ZeroFreeCoTaskMemUTF8 (ptrString);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user