Commit 38dfa2f4 authored by Jinoh Kang's avatar Jinoh Kang Committed by Alexandre Julliard

loader: Fix return type of get_auxiliary().

This is required for fetching pointer-valued vectors (e.g. AT_SYSINFO_EHDR). Signed-off-by: 's avatarJinoh Kang <jinoh.kang.kr@gmail.com>
parent 79910bcf
......@@ -868,7 +868,7 @@ static void set_auxiliary_values( struct wld_auxv *av, const struct wld_auxv *ne
*
* Get a field of the auxiliary structure
*/
static int get_auxiliary( struct wld_auxv *av, int type, int def_val )
static ElfW(Addr) get_auxiliary( struct wld_auxv *av, int type, ElfW(Addr) def_val )
{
for ( ; av->a_type != AT_NULL; av++)
if( av->a_type == type ) return av->a_un.a_val;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment