| 475 | } |
| 476 | |
| 477 | MappedModule::~MappedModule() { |
| 478 | |
| 479 | if (_mappedPe.headers().nt()->FileHeader.Characteristics & IMAGE_FILE_DLL) { |
| 480 | auto dllmain = dllmain_ptr(uintptr_t(_mappedPe.base()) + _mappedPe.headers().opt()->AddressOfEntryPoint); |
| 481 | dllmain(HINSTANCE(_mappedPe.base()), DLL_PROCESS_DETACH, 0); |
| 482 | } |
| 483 | |
| 484 | RemoveExceptionSupport(_mappedPe); |
| 485 | VirtualFree(_mappedImage, 0, MEM_RELEASE); |
| 486 | } |
| 487 | |
| 488 | FARPROC MappedModule::GetProcAddress(const char* name) const { |
| 489 |
nothing calls this directly
no test coverage detected