Commit 2c2da87c authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dbghelp: Don't try to load fieldlist for a forward declaration.

parent 0957cd03
...@@ -1156,8 +1156,9 @@ static struct symt* codeview_parse_one_type(struct codeview_type_parse* ctp, ...@@ -1156,8 +1156,9 @@ static struct symt* codeview_parse_one_type(struct codeview_type_parse* ctp,
if (details) if (details)
{ {
codeview_add_type(curr_type, symt); codeview_add_type(curr_type, symt);
codeview_add_type_struct_field_list(ctp, (struct symt_udt*)symt, if (!(type->struct_v1.property & 0x80)) /* 0x80 = forward declaration */
type->struct_v1.fieldlist); codeview_add_type_struct_field_list(ctp, (struct symt_udt*)symt,
type->struct_v1.fieldlist);
} }
break; break;
...@@ -1171,8 +1172,9 @@ static struct symt* codeview_parse_one_type(struct codeview_type_parse* ctp, ...@@ -1171,8 +1172,9 @@ static struct symt* codeview_parse_one_type(struct codeview_type_parse* ctp,
if (details) if (details)
{ {
codeview_add_type(curr_type, symt); codeview_add_type(curr_type, symt);
codeview_add_type_struct_field_list(ctp, (struct symt_udt*)symt, if (!(type->struct_v2.property & 0x80)) /* 0x80 = forward declaration */
type->struct_v2.fieldlist); codeview_add_type_struct_field_list(ctp, (struct symt_udt*)symt,
type->struct_v2.fieldlist);
} }
break; break;
...@@ -1186,8 +1188,9 @@ static struct symt* codeview_parse_one_type(struct codeview_type_parse* ctp, ...@@ -1186,8 +1188,9 @@ static struct symt* codeview_parse_one_type(struct codeview_type_parse* ctp,
if (details) if (details)
{ {
codeview_add_type(curr_type, symt); codeview_add_type(curr_type, symt);
codeview_add_type_struct_field_list(ctp, (struct symt_udt*)symt, if (!(type->struct_v3.property & 0x80)) /* 0x80 = forward declaration */
type->struct_v3.fieldlist); codeview_add_type_struct_field_list(ctp, (struct symt_udt*)symt,
type->struct_v3.fieldlist);
} }
break; break;
......
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