summaryrefslogtreecommitdiffhomepage
path: root/src/exports
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-11-19 17:05:59 -0500
committermidipix <writeonce@midipix.org>2016-11-19 17:05:59 -0500
commitc49fd66e04e9e74cc12b49e743131cbdf404cd93 (patch)
treec2165fc058b9cdb704645ca1cf6af6dd33f0c9fb /src/exports
parent8c8440429ee70a3e2902a28afd36de4cb3a5a081 (diff)
downloadpemagine-c49fd66e04e9e74cc12b49e743131cbdf404cd93.tar.bz2
pemagine-c49fd66e04e9e74cc12b49e743131cbdf404cd93.tar.xz
pe_get_procedure_address(): code maintenance.
Diffstat (limited to 'src/exports')
-rw-r--r--src/exports/pe_get_procedure_address.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/exports/pe_get_procedure_address.c b/src/exports/pe_get_procedure_address.c
index 958f205..12245b4 100644
--- a/src/exports/pe_get_procedure_address.c
+++ b/src/exports/pe_get_procedure_address.c
@@ -6,13 +6,11 @@
#include <pemagine/pemagine.h>
-pe_api
void * pe_get_procedure_address(const void * base, const char * name)
{
struct pe_export_sym sym;
return pe_get_export_symbol_info(base,name,&sym)
- ? 0
- : sym.addr;
+ ? 0 : sym.addr;
}