Eric Pouech : dbghelp: Don' t try to load fieldlist for a forward declaration.
Alexandre Julliard
julliard at winehq.org
Mon May 2 14:16:13 CDT 2011
Module: wine
Branch: master
Commit: 2c2da87ccdd395cf78c0773122c2b9c5c8b0914a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2c2da87ccdd395cf78c0773122c2b9c5c8b0914a
Author: Eric Pouech <eric.pouech at orange.fr>
Date: Sun May 1 09:46:29 2011 +0200
dbghelp: Don't try to load fieldlist for a forward declaration.
---
dlls/dbghelp/msc.c | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/dlls/dbghelp/msc.c b/dlls/dbghelp/msc.c
index cab3338..451018b 100644
--- a/dlls/dbghelp/msc.c
+++ b/dlls/dbghelp/msc.c
@@ -1156,8 +1156,9 @@ static struct symt* codeview_parse_one_type(struct codeview_type_parse* ctp,
if (details)
{
codeview_add_type(curr_type, symt);
- codeview_add_type_struct_field_list(ctp, (struct symt_udt*)symt,
- type->struct_v1.fieldlist);
+ if (!(type->struct_v1.property & 0x80)) /* 0x80 = forward declaration */
+ codeview_add_type_struct_field_list(ctp, (struct symt_udt*)symt,
+ type->struct_v1.fieldlist);
}
break;
@@ -1171,8 +1172,9 @@ static struct symt* codeview_parse_one_type(struct codeview_type_parse* ctp,
if (details)
{
codeview_add_type(curr_type, symt);
- codeview_add_type_struct_field_list(ctp, (struct symt_udt*)symt,
- type->struct_v2.fieldlist);
+ if (!(type->struct_v2.property & 0x80)) /* 0x80 = forward declaration */
+ codeview_add_type_struct_field_list(ctp, (struct symt_udt*)symt,
+ type->struct_v2.fieldlist);
}
break;
@@ -1186,8 +1188,9 @@ static struct symt* codeview_parse_one_type(struct codeview_type_parse* ctp,
if (details)
{
codeview_add_type(curr_type, symt);
- codeview_add_type_struct_field_list(ctp, (struct symt_udt*)symt,
- type->struct_v3.fieldlist);
+ if (!(type->struct_v3.property & 0x80)) /* 0x80 = forward declaration */
+ codeview_add_type_struct_field_list(ctp, (struct symt_udt*)symt,
+ type->struct_v3.fieldlist);
}
break;
More information about the wine-cvs
mailing list