Use 'mb_' prefix on instances of MemBuffer

modified:   pefile.cpp
	modified:   pefile.h
This commit is contained in:
John Reiser
2020-12-05 13:53:14 -08:00
committed by Markus F.X.J. Oberhumer
parent 249431f45f
commit bb1df15958
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -1739,11 +1739,11 @@ void PeFile::Resource::build(const upx_rnode *node, unsigned &bpos,
upx_byte *PeFile::Resource::build()
{
mem.dealloc();
mb_start.dealloc();
newstart = nullptr;
if (dirsize()) {
mem.alloc(dirsize());
newstart = static_cast<upx_byte *>(mem.getVoidPtr());
mb_start.alloc(dirsize());
newstart = static_cast<upx_byte *>(mb_start.getVoidPtr());
unsigned bpos = 0,spos = dsize;
build(root,bpos,spos,0);