mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +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 )
|
||||
{
|
||||
var data = Data;
|
||||
var length = Length;
|
||||
AllocateData( length + IncreaseSize );
|
||||
Functions.MemCpyUnchecked( Data, data, length );
|
||||
Functions.MemSet( Data + length, 0, IncreaseSize );
|
||||
GC.RemoveMemoryPressure( length );
|
||||
Marshal.FreeHGlobal( ( IntPtr )data );
|
||||
ResizeResources( Length + IncreaseSize );
|
||||
}
|
||||
|
||||
var control = ( Info* )( Data + 4 );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue