mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 12:14:17 +01:00
Fix EST file resource reallocation.
This commit is contained in:
parent
efc21c7882
commit
2b0844a21e
1 changed files with 1 additions and 7 deletions
|
|
@ -51,13 +51,7 @@ public sealed unsafe class EstFile : MetaBaseFile
|
||||||
{
|
{
|
||||||
if( Length < Size + EntryDescSize + EntrySize )
|
if( Length < Size + EntryDescSize + EntrySize )
|
||||||
{
|
{
|
||||||
var data = Data;
|
ResizeResources( Length + IncreaseSize );
|
||||||
var length = Length;
|
|
||||||
AllocateData( length + IncreaseSize );
|
|
||||||
Functions.MemCpyUnchecked( Data, data, length );
|
|
||||||
Functions.MemSet( Data + length, 0, IncreaseSize );
|
|
||||||
GC.RemoveMemoryPressure( length );
|
|
||||||
Marshal.FreeHGlobal( ( IntPtr )data );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var control = ( Info* )( Data + 4 );
|
var control = ( Info* )( Data + 4 );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue