fixed VDM demo example...

2.0
_xeroxz 4 years ago
parent 2d8c09eddc
commit cfdae6a465

@ -190,8 +190,13 @@ int main(int argc, char** argv)
};
theo::hmm_ctx drv_mapper({ _kalloc, _kmemcpy, resolve_symbol });
const auto drv_entry = drv_mapper.map_objs(image_objs);
if (!drv_mapper.map_objs(image_objs))
{
std::printf("[!] failed to map object files...\n");
return -1;
}
const auto drv_entry = drv_mapper.get_symbol("DrvEntry");
std::printf("\n\n> driver entry -> 0x%p\n", drv_entry);
std::getchar();

Loading…
Cancel
Save