Skip to content

Commit

Permalink
Another try.
Browse files Browse the repository at this point in the history
  • Loading branch information
JunaMeinhold committed Nov 8, 2024
1 parent 24d4edd commit 25f0474
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Hexa.NET.ImGui.Widgets/Dialogs/FileUtilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -580,11 +580,11 @@ private static void FileStat(StdWString str, out Stat stat)
byte* pStr0;
if (strSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(strSize0);
pStr0 = Utils.Alloc<byte>(strSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[strSize0];
byte* pStrStack0 = stackalloc byte[strSize0 + 1];
pStr0 = pStrStack0;
}
Encoding.UTF8.GetBytes(str.Data, str.Size, pStr0, strSize0);
Expand Down Expand Up @@ -872,11 +872,11 @@ private static void OSXFileStat(StdWString str, out OSXStat stat)
byte* pStr0;
if (strSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc<byte>(strSize0);
pStr0 = Utils.Alloc<byte>(strSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[strSize0];
byte* pStrStack0 = stackalloc byte[strSize0 + 1];
pStr0 = pStrStack0;
}
Encoding.UTF8.GetBytes(str.Data, str.Size, pStr0, strSize0);
Expand Down

0 comments on commit 25f0474

Please sign in to comment.