diff --git a/library/DFProcess-windows-SHM.cpp b/library/DFProcess-windows-SHM.cpp index 7966cf58c..37d74697a 100644 --- a/library/DFProcess-windows-SHM.cpp +++ b/library/DFProcess-windows-SHM.cpp @@ -307,21 +307,8 @@ bool SHMProcess::getThreadIDs(vector & threads ) //FIXME: use VirtualQuery to probe for memory ranges, cross-reference with base-corrected PE segment entries void SHMProcess::getMemRanges( vector & ranges ) { - // 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 - - // I'm faking this, because there's no way I'm using VirtualQuery - - t_memrange temp; - uint32_t base = d->memdescriptor->getBase(); - temp.start = base + 0x1000; // more fakery. - temp.end = base + Process::readDWord(base+readDWord(base+0x3C)+0x50)-1; // yay for magic. - temp.read = 1; - temp.write = 1; - temp.execute = 0; // fake - temp.valid = true; - strcpy(temp.name,"pants"); - ranges.push_back(temp); + // BLAH + ranges.clear(); } bool SHMProcess::acquireSuspendLock() diff --git a/library/DFProcess-windows.cpp b/library/DFProcess-windows.cpp index da0055709..9f637e944 100644 --- a/library/DFProcess-windows.cpp +++ b/library/DFProcess-windows.cpp @@ -22,7 +22,6 @@ must not be misrepresented as being the original software. distribution. */ #include "Internal.h" -#include "WindowsProcess.h" #include "ProcessFactory.h" #include "MicrosoftSTL.h" #include "dfhack/VersionInfo.h" @@ -225,7 +224,6 @@ NormalProcess::~NormalProcess() } if(sections != NULL) free(sections); - delete d; } VersionInfo * NormalProcess::getDescriptor() @@ -558,7 +556,7 @@ const string NormalProcess::readSTLString (uint32_t offset) string NormalProcess::readClassName (uint32_t vptr) { - stl.readClassName(vptr); + return stl.readClassName(vptr); } string NormalProcess::getPath() diff --git a/library/private/SHMProcess.h b/library/private/SHMProcess.h index 5fb704b07..3f8a8f75c 100644 --- a/library/private/SHMProcess.h +++ b/library/private/SHMProcess.h @@ -26,6 +26,7 @@ distribution. #define SHM_PROCESS_H_INCLUDED #include "dfhack/DFProcess.h" +#include "dfhack/DFIntegers.h" namespace DFHack { @@ -113,7 +114,7 @@ namespace DFHack int client_lock; int suspend_lock; #else - typedef unit32_t pid_t; + typedef uint32_t pid_t; uint32_t process_ID; HANDLE DFSVMutex; HANDLE DFCLMutex;