dbghelp: Clear N_PEXT flag of stab type in macho files.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2020-03-29 21:02:03 +02:00 committed by Alexandre Julliard
parent 208719a750
commit 47f1c5a993

View file

@ -1349,7 +1349,10 @@ BOOL stabs_parse(struct module* module, ULONG_PTR load_offset,
if (stab_ptr->n_type & N_STAB)
type = stab_ptr->n_type;
else
{
type = (stab_ptr->n_type & N_TYPE);
if (module->type == DMT_MACHO) type &= ~N_PEXT;
}
/* only symbol entries contain a typedef */
switch (type)