Blame src/exports/pe_get_procedure_address.c

feffc7
/*****************************************************************************/
feffc7
/*  pemagination: a (virtual) tour into portable bits and executable bytes   */
59fd65
/*  Copyright (C) 2013--2016  Z. Gilboa                                      */
feffc7
/*  Released under GPLv2 and GPLv3; see COPYING.PEMAGINE.                    */
feffc7
/*****************************************************************************/
feffc7
feffc7
#include <pemagine/pemagine.h>
feffc7
feffc7
void * pe_get_procedure_address(const void * base, const char * name)
feffc7
{
feffc7
	struct pe_export_sym sym;
feffc7
feffc7
	return pe_get_export_symbol_info(base,name,&sym)
c49fd6
		? 0 : sym.addr;
feffc7
feffc7
}