Use 'mb_' prefix on instances of MemBuffer
modified: pefile.cpp modified: pefile.h
This commit is contained in:
+3
-3
@@ -1731,11 +1731,11 @@ void PeFile::Resource::build(const upx_rnode *node, unsigned &bpos,
|
|||||||
|
|
||||||
upx_byte *PeFile::Resource::build()
|
upx_byte *PeFile::Resource::build()
|
||||||
{
|
{
|
||||||
mem.dealloc();
|
mb_start.dealloc();
|
||||||
newstart = nullptr;
|
newstart = nullptr;
|
||||||
if (dirsize()) {
|
if (dirsize()) {
|
||||||
mem.alloc(dirsize());
|
mb_start.alloc(dirsize());
|
||||||
newstart = static_cast<upx_byte *>(mem.getVoidPtr());
|
newstart = static_cast<upx_byte *>(mb_start.getVoidPtr());
|
||||||
unsigned bpos = 0,spos = dsize;
|
unsigned bpos = 0,spos = dsize;
|
||||||
build(root,bpos,spos,0);
|
build(root,bpos,spos,0);
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -343,7 +343,7 @@ protected:
|
|||||||
struct upx_rbranch;
|
struct upx_rbranch;
|
||||||
struct upx_rleaf;
|
struct upx_rleaf;
|
||||||
|
|
||||||
MemBuffer mem;
|
MemBuffer mb_start;
|
||||||
const upx_byte *start;
|
const upx_byte *start;
|
||||||
upx_byte *newstart;
|
upx_byte *newstart;
|
||||||
upx_rnode *root;
|
upx_rnode *root;
|
||||||
|
|||||||
Reference in New Issue
Block a user