Skip to content

Commit

Permalink
still a virtual device bug
Browse files Browse the repository at this point in the history
  • Loading branch information
NtQuery authored and NtQuery committed Mar 20, 2014
1 parent bd9b664 commit fba6ea9
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
7 changes: 6 additions & 1 deletion Scylla/DumpMemoryGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,12 @@ bool DumpMemoryGui::getMappedFilename( Memory* memory )

if (GetMappedFileNameW(ProcessAccessHelp::hProcess, (LPVOID)memory->address, filename, _countof(filename)) > 0)
{
return deviceNameResolver->resolveDeviceLongNameToShort(filename, memory->mappedFilename);
if (!deviceNameResolver->resolveDeviceLongNameToShort(filename, memory->mappedFilename))
{
wcscpy_s(memory->mappedFilename, filename);
}

return true;
}

return false;
Expand Down
9 changes: 8 additions & 1 deletion Scylla/ProcessAccessHelp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -682,9 +682,16 @@ bool ProcessAccessHelp::getProcessModules(HANDLE hProcess, std::vector<ModuleInf
{
if (!deviceNameResolver.resolveDeviceLongNameToShort(filename, module.fullPath))
{
MessageBoxW(0, filename, L"Cannot resolve this path!", MB_ICONERROR);
if (!GetModuleFileNameExW(hProcess, (HMODULE)module.modBaseAddr, module.fullPath, _countof(module.fullPath)))
{
wcscpy_s(module.fullPath, filename);
}
}
}
else
{
GetModuleFileNameExW(hProcess, (HMODULE)module.modBaseAddr, module.fullPath, _countof(module.fullPath));
}

moduleList.push_back(module);
}
Expand Down
5 changes: 4 additions & 1 deletion Scylla/ProcessLister.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ bool ProcessLister::getAbsoluteFilePath(HANDLE hProcess, Process * process)
#endif
//some virtual volumes

MessageBoxW(0, processPath, L"Cannot resolve this path!", MB_ICONERROR);
if (GetModuleFileNameExW(hProcess, 0, process->fullPath, _countof(process->fullPath)) != 0)
{
retVal = true;
}
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion Scylla/Scylla.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "Logger.h"

#define APPNAME_S "Scylla"
#define APPVERSION_S "v0.9.5"
#define APPVERSION_S "v0.9.5b"
#define APPVERSIONDWORD 0x00009500

#define DONATE_BTC_ADDRESS "1GmVrhWwUhwLohaCLP4SKV5kkz8rd16N8h"
Expand Down

0 comments on commit fba6ea9

Please sign in to comment.