fixed wine process find codepath, added some suspend and resume calls to the tools, some data consistency tweaks

develop
Petr Mrázek 2009-11-17 15:37:08 +00:00
parent 2f710730ac
commit d4aad2387e
2 changed files with 3 additions and 3 deletions

@ -100,7 +100,7 @@ Process::Process(uint32_t pid, vector <memory_info> & known_versions)
{
char exe_link[1024];
// put executable name and path together
sprintf("%s/%s",target_name,cmdline.c_str());
sprintf(exe_link,"%s/%s",target_name,cmdline.c_str());
// create wine process, add it to the vector
d->identified = d->validate(exe_link,pid,mem_name,known_versions);

@ -42,9 +42,9 @@ void searchLoop(DFHack::API & DF, vector <DFHack::t_memrange>& ranges, int size,
while (1)
{
cout << ">>";
DF.Detach();
DF.Resume();
std::getline(cin, select);
DF.Attach();
DF.Suspend();
if(select == "p")
{
cout << "Found addresses:" << endl;