dbghelp: Fixed offset computation for bitfields inside structures in Codeview debug information.

This commit is contained in:
Eric Pouech 2008-09-06 22:19:46 +02:00 committed by Alexandre Julliard
parent 8f61250bab
commit b5ffe31d22
1 changed files with 2 additions and 2 deletions

View File

@ -525,13 +525,13 @@ static void codeview_add_udt_element(struct codeview_type_parse* ctp,
case LF_BITFIELD_V1:
symt_add_udt_element(ctp->module, symt, name,
codeview_fetch_type(ctp, cv_type->bitfield_v1.type, FALSE),
cv_type->bitfield_v1.bitoff,
(value << 3) + cv_type->bitfield_v1.bitoff,
cv_type->bitfield_v1.nbits);
return;
case LF_BITFIELD_V2:
symt_add_udt_element(ctp->module, symt, name,
codeview_fetch_type(ctp, cv_type->bitfield_v2.type, FALSE),
cv_type->bitfield_v2.bitoff,
(value << 3) + cv_type->bitfield_v2.bitoff,
cv_type->bitfield_v2.nbits);
return;
}