MCPcopy Create free account
hub / github.com/NtQuery/Scylla / setModuleName

Method setModuleName

Scylla/DumpMemoryGui.cpp:452–484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452void DumpMemoryGui::setModuleName(DWORD_PTR moduleBase, const WCHAR * moduleName)
453{
454 bool found = false;
455 std::vector<Memory>::const_iterator iter;
456
457 //get filename
458 const WCHAR* slash = wcsrchr(moduleName, L'\\');
459 if(slash)
460 {
461 moduleName = slash+1;
462 }
463
464
465 for( iter = memoryList.begin(); iter != memoryList.end(); iter++)
466 {
467 if (iter->address == moduleBase)
468 {
469 found = true;
470 }
471
472 if (found)
473 {
474 if (iter->type == MEM_IMAGE)
475 {
476 wcscpy_s((WCHAR *)iter->filename, MAX_PATH, moduleName);
477 }
478 else
479 {
480 break;
481 }
482 }
483 }
484}
485
486void DumpMemoryGui::setAllSectionNames( DWORD_PTR moduleBase, WCHAR * moduleName )
487{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected