Use 'mb_' prefix on instances of MemBuffer
modified: pefile.cpp modified: pefile.h
This commit is contained in:
committed by
Markus F.X.J. Oberhumer
parent
249431f45f
commit
bb1df15958
+3
-3
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user