| 450 | } |
| 451 | |
| 452 | void 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 | |
| 486 | void DumpMemoryGui::setAllSectionNames( DWORD_PTR moduleBase, WCHAR * moduleName ) |
| 487 | { |
nothing calls this directly
no outgoing calls
no test coverage detected