Blame src/exports/pe_get_procedure_address.c

feffc7
/*****************************************************************************/
feffc7
/*  pemagination: a (virtual) tour into portable bits and executable bytes   */
feffc7
/*  Copyright (C) 2013,2014,2015  Z. Gilboa                                  */
feffc7
/*  Released under GPLv2 and GPLv3; see COPYING.PEMAGINE.                    */
feffc7
/*****************************************************************************/
feffc7
feffc7
#include <pemagine/pemagine.h>
feffc7
feffc7
pe_api
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)
feffc7
		? 0
feffc7
		: sym.addr;
feffc7
feffc7
}