TODO use VirtualQuery

develop
Petr Mrázek 2011-02-08 14:34:43 +01:00
parent a436db541d
commit 130d965494
1 changed files with 6 additions and 2 deletions

@ -297,8 +297,12 @@ void NormalProcess::getMemRanges( vector<t_memrange> & ranges )
// code here is taken from hexsearch by Silas Dunmore. // code here is taken from hexsearch by Silas Dunmore.
// As this IMHO isn't a 'sunstantial portion' of anything, I'm not including the MIT license here // As this IMHO isn't a 'sunstantial portion' of anything, I'm not including the MIT license here
// I'm faking this, because there's no way I'm using VirtualQuery //FIXME: USE THIS!
/*
while VirtualQuery(process, info, sizeOf(info)) == sizeOf(info)
{
}
*/
t_memrange temp; t_memrange temp;
uint32_t base = d->my_descriptor->getBase(); uint32_t base = d->my_descriptor->getBase();
temp.start = base + 0x1000; // more fakery. temp.start = base + 0x1000; // more fakery.