dbghelp: In dwarf attribute parsing, ensure that we do have a block when parsing a block.

This commit is contained in:
Eric Pouech 2010-03-27 09:08:44 +01:00 committed by Alexandre Julliard
parent ea21a32707
commit 6a6edcd1ca
1 changed files with 7 additions and 0 deletions

View File

@ -878,6 +878,13 @@ static BOOL dwarf2_compute_location_attr(dwarf2_parse_context_t* ctx,
loc->reg = Wine_DW_no_register;
loc->offset = xloc.u.uvalue;
return TRUE;
case DW_FORM_block:
case DW_FORM_block1:
case DW_FORM_block2:
case DW_FORM_block4:
break;
default: FIXME("Unsupported yet form %lx\n", xloc.form);
return FALSE;
}
/* assume we have a block form */