Commit 9d3687ad authored by Conor McCarthy's avatar Conor McCarthy Committed by Alexandre Julliard

dbghelp: Return NULL instead of IMAGE_NO_MAP when PE file mapping fails.

A NULL test is always applied to the return value from pe_map_full(), but IMAGE_NO_MAP is not NULL, it is ((void*)-1). Signed-off-by: 's avatarConor McCarthy <cmccarthy@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 748565df
......@@ -53,7 +53,7 @@ static void* pe_map_full(struct image_file_map* fmap, IMAGE_NT_HEADERS** nth)
fmap->u.pe.full_count++;
return fmap->u.pe.full_map;
}
return IMAGE_NO_MAP;
return NULL;
}
static void pe_unmap_full(struct image_file_map* fmap)
......
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